InterviewSolution
Saved Bookmarks
| 1. |
Why Does Serialization Not Save The Value Of Static Class Attributes? Why Static Variables Are Not Serialized? |
|
Answer» The JAVA variables declared as static are not considered part of the state of an object since they are shared by all instances of that class. Saving static variables with each serialized object would have FOLLOWING problems.
The Java variables declared as static are not considered part of the state of an object since they are shared by all instances of that class. Saving static variables with each serialized object would have following problems. |
|