Question: What is NullPointerException? B - A NullPointerException is thrown when object is set as null. A - A NullPointerException is thrown when calling the instance
What is NullPointerException?
B A NullPointerException is thrown when object is set as null.
A A NullPointerException is thrown when calling the instance method of a null object or modifyingaccessing field of a null object.
C A NullPointerException is thrown when object property is set as null.
D None of the above.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
