1.

Why Static Variables Are Not Serialized In Java?

Answer»

The STATIC variables are class LEVEL variables and are not the part of the object STATE so they are not saved as the part of serialized object.

The static variables are class level variables and are not the part of the object state so they are not saved as the part of serialized object.



Discussion

No Comment Found