Is java object serialization compatible between 1.5 and 1.6

前端 未结 8 1890
灰色年华
灰色年华 2020-12-18 19:48

I am wondering whether it is safe to mix jdk 1.5 and 1.6 (Java 6) object serialization (biderctional communication). I searched for an explicit statement from sun concerning

8条回答
  •  自闭症患者
    2020-12-18 20:29

    After testing with a serialized object written to a file using the ObjectOutputStream in a Java 1.5 program, then running a read with a ObjectInputStream in a Java 1.6 program I can say this worked without any issue.

提交回复
热议问题