Java - Transiant & Static Fields

Transiant :

  • To exclude while serialization and de-serialization.
  • Transiant Key value stored as default while serializing eg. Null or 0
Static Fields:
  • Static fields are ignored while serialization and de-serialization. Because static fields are depends on class not depends on object 

Comments

Popular posts from this blog

How to set Java Object into JaxBElement ?

GitLab