An interface with no fields or methods is known as a ______.
A. Runnable Interface
B. Marker Interface
C. Abstract Interface
D. CharSequence Interface
Answer:B
An interface with no fields or methods is known as a ______.
A. Runnable Interface B. Marker Interface C. Abstract Interface D. CharSequence Interface
Explanation: An interface with no methods and fields is known as the marker interface. In other words, an empty interface (containing no fields and methods) is called a marker interface. In Java, the most commonly used marker interfaces are Serializable, Cloneable, Remote, and ThreadSafe interfaces. Marker interfaces are also known as the Tag interface. It is used to tell the JVM or compiler that the particular class has special behavior.