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


Please Help Members By Posting Answers For Below Questions

Compare java and python.

577


How to connect to a remote database using Applet?

2040


What is the function of java?

513


Is a class an object?

578


What is the this keyword?

554






Can we clone singleton object in java?

564


Which language is java?

544


Explain the use of javap tool.

632


What is a text string?

619


Can we cast any other type to boolean type with type casting?

539


What is the method overriding?

621


Can we able to pass objects as an arguments in java?

530


why using interface interface ?

1507


How do you do math powers in java?

574


What is java basic concept?

525