It’s Marker Interface and just like an normal interface.
with no methods.
public class Paging implements Serializable{
}
And somewhere else Runtime
realizes objects like
if (Paging instanceof Serializable) {
// Hey this object is able to serialize..lets go furthur
} else {
// Dear programmer , your class not implemented Serializable
}
solved Serilization in Java [closed]