Nullpointer exception is a very common exception. Why is it
not made as a checked exception?
Answer Posted / ravi jain
when some operation is done with an object which is not
initialized i.e. object is "null" than NullPointerException
occurs.
This exception is in category of unchecked exceptions because
instance are not available at compile time so how complier checks whether object is null or instantiated, so it is
treated as unchecked exception.
Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
How do you clear a method in java?
Will the jvm load the package twice at runtime?
What is scope of a variable?
What is the formula to calculate percentage?
Why is the type for real numbers called double?
What is map in java?
What is final method in java?
What is the difference between post and put?
Does sprintf add a null terminator?
Which package is imported by default?
What do you mean by boolean?
What is mvc in java?
Why do we need array in java?
Does printwriter create a file?
What are the different types of constructor?