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
Why set is used in java?
Why char array is favored over string for the storage of passwords?
Explain serialization and deserialization in java?
What is the difference between abstraction and encapsulation?
Give some features of interface?
Does java support function overloading, pointers, structures, unions or linked lists?
Is map sorted in java?
How do I get the | symbol on my keyboard?
What are the parts of a method?
What is the static field modifier?
Explain the difference between jdk, jre, and jvm?
What is command line argument in java?
What is an escape character in java?
What is binary tree in java?
What is a superclass?