Home »
MCQs »
JUnit MCQs
A primitive or object can be checked to be equal by calling ____
15. A primitive or object can be checked to be equal by calling ____.
- void assertEquals(boolean expected,boolean actual)
- void assertTrue(boolean condition)
- void assertFalse(boolean condition)
- void assertNull(Object obj)
Answer: A) void assertEquals(boolean expected,boolean actual)
Explanation:
A primitive object can be checked to be equal by calling void assertEquals(boolean expected, boolean actual).