How to use transient variable in Java with Example

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Some of java keyword are not very famous one of them is transient keyword which is used in Serialization process. This article explains key concept of

Statistics

  • Total Hits - 27008

  • Total Votes - 130 votes

  • Vote Up - 64 votes

  • Vote Down - 66 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2011-10-09 05:28:46

Description

Some of java keyword are not very famous one of them is transient keyword which is used in Serialization process. This article explains key concept of transient variable in java. transient variable saves you from dangerous NotSerializableException if any of your member variable is not serializable and you have made class to implement serializable. it also gives you some control over serialization process by excluding some members from serialization. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements