Java: static Serialization and Deserialization Examples
Java: static Serialization and Deserialization Examples
The variable declares with static keyword are known as class variables these variables will not serialize when doing serialization for objects of the class.
Note: Fields declare as transient also not serialize.
Pre-requisite:
Java: Marker Interface uses and Examples
Java: Serialization and Deserialization Examples
For Example: In Employee Class fields age is declared with the keyword static. When…
View On WordPress











