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
Is string is a class in java?
What happens when I use / and % with a negative numerator?
What is the use of inner class?
What are the new features in java 8?
What is finally and finalize in java?
Why java is platform independent? Explain.
What is the generic class?
What is class and object in java?
What happens when heap memory is full?
What is immutable in java?
Write a program to find the greatest of three numbers in java?
What are computer functions?
Is void a return type?
How to provide security in java
What is ascii code?