| What do you know about Serializable Interface in Java?
Serializable Interface in Java present in java.io.package. And it is a marker interface. And we does not have methods and fields in Marker Interface. It provides run-time type information about objects so compiler and JVM have additional information about the object. As no method is there classes that implementing it do not have to implement any methods. If we need Serialized and Deserialized of instance then we do this by implement this in classes. As we allready aware serialization is one of the mechanism of converting the state of an object into byte stream. And Serialization is done by using ObjectOutputStrem. And on other hand deserialization is just opposite process where byte stream is used to recreatse the actual java object in memory. Mehcnism is used to persist the object. And deseialization is done by using ObjectInputStream. | | |