Home » JAVA Programming » Java Basic » Question
  1. Which method is used to verify the actual and expected results in Junits?
    1. isEqual()
    2. ==
    3. assert()
    4. equals()
    5. None of these
Correct Option: C

assert method is used to compare actual and expected results in Junit. It has various implementation like assertEquals, assertArrayEquals, assertFalse, assertNotNull, etc.



Your comments will be displayed only after manual approval.