Computer Science TCS JAVA Technical Questions

Preview of the attached file

Q:Which methods of Serializable interface should I implement?
A:The serializable interface is an empty interface, it does not contain any methods. So we do not implement any methods. (asked in TCS 2006 tech interview)

Q:How can I customize the seralization process? i.e. how can one have a control over the serialization process?
A: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.(asked in TCS 2006 tech interview).

Please download the attached file to view rest of the content.


Sponsored Ads