What do you mean by Marker interface in Java?

It is an interfaces that has no field or methods (empty interface). It helps in conveying to the JVM that the class that is implementing the interface of a category will have special behavior. It is also known as tag interface.

There are 4 major marker interfaces:

  • Searilizable interface
  • Cloneable interface
  • Remote interface
  • ThreadSafe interface

Suggest An Answer

No suggestions avaliable!

Related Interview Questions