Explain transient variable in java - Java @ Desk

Sunday, May 19, 2013

Explain transient variable in java

Transient keyword is being used while we declare a variable.

This keyword is used if we don't want the variable to get serialized while the object is getting serialized. It tells JVM not to serialize this variable.






No comments:

Post a Comment