1.

The equals() method is inherited from which base class?(a) Object(b) String(c) Integer(d) org.junit.EqualsThe question was posed to me in an interview for internship.The origin of the question is Testing the Controller Component in chapter Mastering JUnit of JUnit

Answer»

The correct option is (a) Object

Explanation: The EQUALS() METHOD is inherited from the Objects CLASS defined in java.lang.Object.



Discussion

No Comment Found

Related InterviewSolutions