We know that we can create marker interface. Suppose I want to create a marker interface like Serializable
interface.
How can I force the JVM to tell user to add serial version id as happens with the Serializable
interface?
Can I use our own marker interface in file handling or in RMI calls instead of Serializable
interface?
Suppose my marker interface is
public interface SyncBean {}
How can I make the JVM require adding serial
version id for implementing classes?