Question: What is the purpose of the 'NullPointerException' in Java?Answer: The 'NullPointerException' is thrown when attempting to access or modify an object reference that is null.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: