PrepZone Logo
PrepZone
Back to Java

Java · Easy

What is a marker interface? Give examples (e.g., Serializable, Cloneable).

JavaOOPInterfaces

Answer preview

A marker interface is an empty interface (no methods or fields) used to signal metadata to the JVM or framework.…