The transient keyword is used to indicate to the JVM that the indicated
variable is not part of the persistent state of the object. All the Variables
which are part of the persistent state of an object are required to be saved
when the object is archived. At that time, the transient marker is ignored by
the Java runtime system.
we use transient in a class or instance variable declaration like other modifiers. Serialization process in not applicable to the transient variables.
To know more about this just click:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Keyword- transient
Post your Comment