Monday, April 30, 2007

What is serializable interface?

In java.io package there is an interface called java.io.Serializable, which is a syntactic way of serializing objects. This interface does not define any method. The purpose of serialization is persistence, communication over sockets or RMI. In Object serialization an object can be converted into byte stream and vice versa.

1 comments :

Anonymous said...

This is basically marker interface (This type of interfaces tells compiler implementing class needs to be serialized)

 

Disclaimer
Interview Questions On Java,Java EE Copyright © 2017. Reads: best tracker