Java / Interface
How JVM invoke special behavior in case of marker interface?
Let consider Serializable interface as an example. Serialization is handled by the ObjectInputStream and ObjectOutputStream classes. These classes will check your class whether or not it implementes Serializable, Externalizable. If yes it will continue or else will thrown NonSerializableException.
More Related questions...