Marker interfaces Java

After knowing what is serialization, let us know something more. To support serialization, java.io package comes with interface Serializable and two classes ObjectOutputStream and ObjectInputStream. 1. class java.io.ObjectOutputStream Following is the class signature public class ObjectOutputStream extends OutputStream implements ObjectOutput, ObjectStreamConstants The methods of ObjectOutputStream are capable to save the state of primitive data types …

Marker interfaces Java Read More »