Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クラスがインターフェイスを実装するときにandメソッドの最初のステートメントとしてdefaultReadObject()andを記述する必要があるのはなぜですか。defaultWriteObject()readObject(ObjectInputStream o)writeObject(ObjectOutputStream o)serializable
defaultReadObject()
defaultWriteObject()
readObject(ObjectInputStream o)
writeObject(ObjectOutputStream o)
serializable
ドキュメントからのいくつかの便利な行
defaultReadObject() メソッドは、このストリームから現在のクラスの非静的および非一時フィールドを読み取ります。
そして、文章も同じです。