集册 Java 面试笔记 如何控制 serialization 的过程?

如何控制 serialization 的过程?

欢马劈雪     最近更新时间:2020-08-04 05:37:59

402

Yes it is possible to have control over serialization process. The class should implement Externalizable interface. This interface contains two methods namely readExternal and writeExternal. You should implement these methods and write the logic for customizing the serialization process.