1.

What is the purpose of assertArrayEquals(“message”, A, B)?(a) Checks that “message” is in both A and B(b) Checks that “message” is in A but not B(c) Checks that “message” is in B but not A(d) Asserts the equality of the A and B arraysThis question was addressed to me by my college professor while I was bunking the class.Origin of the question is Exploring Core JUnit in section Exploring Core JUnit of JUnit

Answer»

The correct choice is (d) ASSERTS the equality of the A and B arrays

To ELABORATE: Asserts the equality of the A and B arrays. The “message” is DISPLAYED to the USER.



Discussion

No Comment Found

Related InterviewSolutions