DEVFYI - Developer Resource - FYI

How can I customize the seralization process? i.e. how can one have a control over the serialization process?

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

502. How can I customize the seralization process? i.e. how can one have a control over the serialization process?

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.

(Continued on next question...)

Other Interview Questions