Saturday, February 17, 2018

transient keyword in Java


Adapted from : 

Java transient keyword is used in serialization. If any data member is defined as transient, it will not be serialized.

Variables may be marked transient to indicate that they are not part of the persistent state of an object.






No comments:

Post a Comment

java special for collection size, array size, and string size

Size: For Collections (eg: Map, List, etc ): usually it use collection.size(), eg         Map<Character, Integer> map ...