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
What is double in java?
What is object class in java?
What are basic data types?
How to call one constructor from the other constructor ?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What is a singleton in genetics?
explain local datetime api in java8?
Is sizeof a preprocessor?
How many ways can we create singleton class?
Is java pass by value or pass by reference?
What’s the difference between callable and runnable?
What are advantages and disadvantages of OOPs?
Can we pass a primitive type by reference in java? How
What is identifier give example?
How do you convert string to int in java?