研发埠

标题: [oracle interview]What happens to the static fields of a class during serialization? [打印本页]

作者: 王浩    时间: 2013-8-16 15:47
标题: [oracle interview]What happens to the static fields of a class during serialization?

作者: 于郑生    时间: 2013-8-16 15:53
There are  three exceptions in which serialization doesnot necessarily read and write to  the stream. These are1. Serialization ignores static fields, because they are  not part of ay particular state state.2. Base class fields are only hendled  if the base class itself is serializable.3. Transient fields.




欢迎光临 研发埠 (http://bbs.yanfabu.com/) Powered by Discuz! X3.2