Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

why static variables cannot be serialized in java

Static Variable. Static variables belong to a class and not to any individual instance. The concept of serialization is concerned with the object's current state. Only data associated with a specific instance of a class is serialized, therefore static member fields are ignored during serialization.Dec 29, 2013
 
PREVIOUS NEXT
Tagged: #static #variables #serialized #java
ADD COMMENT
Topic
Name
7+4 =