Which exception occurs when accessing a method on a null reference?
Correct answer
NullPointerException
Explanation
Accessing a method on a null object throws NullPointerException.
Update: Admin added a tag on this question
Topics
By Admin · · 29 views