An interface with no methods, used to mark classes with metadata.
A marker interface does not contain any methods or fields but is used to convey metadata about a class to the JVM or other components. A classic example is 'Serializable', which indicates that a class can be serialized. This mechanism facilitates operations like object serialization without needing to implement specific methods.
Additional Notes
How would you explain a marker interface in an interview?