Home > DeveloperSection > Interviews > what is the use of transient keyword in java?

Posted on    September-10-2015 8:41 AM

 Java Java 
 1 Answer(s)
  474  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    September-10-2015 8:41 AM

Transient keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero forr integers).

Don't want to miss updates? Please click the below button!

Follow MindStick