HashMap Serializability

后端 未结 3 799
误落风尘
误落风尘 2021-02-02 07:47

HashMap implements the Serializable interface; so it can be serialized. I have looked at the implementation of HashMap and the Entry[] table is marked as transient. Since the En

3条回答
  •  心在旅途
    2021-02-02 08:34

    HashMap takes care of its own serialization through the use of the writeObject and readObject methods.

提交回复
热议问题