Monday, 25 April 2016

If there is no method defined then what is the purpose of Serializable interface ?


Serializable interface doesn't have any method and also called Marker interface or Null interface in Java.

When your class implements java.io.Serializable interface it becomes Serializable in Java and gives compiler an indication that use Java Serialization mechanism to serialize this object.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.