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

How do you clear a method in java?

776


Will the jvm load the package twice at runtime?

861


What is scope of a variable?

858


What is the formula to calculate percentage?

776


Why is the type for real numbers called double?

760


What is map in java?

757


What is final method in java?

774


What is the difference between post and put?

796


Does sprintf add a null terminator?

852


Which package is imported by default?

855


What do you mean by boolean?

842


What is mvc in java?

812


Why do we need array in java?

776


Does printwriter create a file?

765


What are the different types of constructor?

750