What is marker interface in java?
Marker interfaces are interfaces that do not contain any methods or fields. They are also known as tagging interfaces. The purpose of a marker interface is to provide runtime type information about objects. This allows the compiler and JVM to have more information about the object. Here is an example of a marker interface: Some examples of marker … Read more