Home »
MCQs »
JUnit MCQs
Which of the following checks if the condition is FALSE?
18. Which of the following checks if the condition is FALSE?
- void assertNotNull(Object obj)
- void assertTrue(boolean condition)
- void assertFalse(boolean condition)
- void assertNull(Object obj)
Answer: C) void assertFalse(boolean condition)
Explanation:
void assertFalse(boolean condition) checks if the condition is FALSE.