序列化時(shí) static 域的處理?

2018-07-03 15:51 更新

There are three exceptions in which serialization doesnot necessarily read and write to the stream. These are

  1. Serialization ignores static fields, because they are not part of auy particular state state.
  2. Base class fields are only hendled if the base class itself is serializable.
  3. Transient fields.
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)