1.

The assertEquals() method uses which underlying method to compare objects?(a) ==(b) equals()(c) isequal()(d) =I got this question in class test.My question is from Testing the Controller Component topic in section Mastering JUnit of JUnit

Answer»

The CORRECT OPTION is (b) equals()

For explanation I would say: The assertEquals() METHOD makes USE of equals() to compare objects, COMPARING identity.



Discussion

No Comment Found

Related InterviewSolutions