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
Compare java and python.
How to connect to a remote database using Applet?
What is the function of java?
Is a class an object?
What is the this keyword?
Can we clone singleton object in java?
Which language is java?
Explain the use of javap tool.
What is a text string?
Can we cast any other type to boolean type with type casting?
What is the method overriding?
Can we able to pass objects as an arguments in java?
why using interface interface ?
How do you do math powers in java?
What is java basic concept?