Question 5
Back to Exercise
What must x.equals(null) return for any non-null x?
- A true
- B false Correct
- C It must throw NullPointerException
- D It depends on x
Correct Answer: Option B
instanceof checks return false for null, which handles it automatically.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!