📜  为什么静态变量不能在java代码示例中序列化

📅  最后修改于: 2022-03-11 14:52:33.396000             🧑  作者: Mango

代码示例1
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