Which of the following checks if the object is NOT NULL?

20. Which of the following checks if the object is NOT NULL?

  1. void assertNotNull(Object obj)
  2. void assertNull(Object obj)
  3. void assertNullNot(Object obj)
  4. void assertNullValue(Object obj)

Answer: A) void assertNotNull(Object obj)

Explanation:

void assertNotNull(Object obj) checks if the object is NOT NULL.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.