0 votes
in JAVA by
Which of the following is a marker interface?

a) Runnable interface

b) Remote interface

c) Readable interface

d) Result interface

1 Answer

0 votes
by

(b) Remote interface

Reason: A marker interface is an interface with no fields and methods. In other words, an empty interface (contains nothing) is known as the marker interface. Examples of marker interfaces are Cloneable, Serializable, ThreadSafe, and Remote interface.

The Runnable, Readable, and Result interface are not marker interface as they contain some methods or fields.

Hence, the correct answer is option (b).

Related questions

0 votes
asked Apr 9, 2021 in JAVA by Robindeniel
0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
...