Home »
MCQs »
JUnit MCQs
Which of the following checks if the object is NULL?
19. Which of the following checks if the object is NULL?
- void assertNotNull(Object obj)
- void assertNull(Object obj)
- void assertNullNot(Object obj)
- void assertNullValue(Object obj)
Answer: B) void assertNull(Object obj)
Explanation:
void assertNull(Object obj) checks if the object is NULL.