1.

What are the components of a marker interface?(a) Fields and methods(b) No fields, only methods(c) Fields, no methods(d) No fields, No methodsThis question was posed to me in semester exam.I'm obligated to ask this question of Reflection API topic in section Session Management, JSP & API of Java

Answer» CORRECT answer is (d) No fields, No methods

The EXPLANATION is: Marker interface in JAVA is an EMPTY interface in Java.


Discussion

No Comment Found

Related InterviewSolutions