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

Can we override private method in java?

842


Difference between object instantiation and construction ?

821


What is public static void main?

801


Write a program to print all permutations of string?

909


What is not thread safe?

757


Who developed java?

764


Explain different types of thread priorities ?

859


Why are generics used?

735


What language is an assembler written in?

765


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1685


How are this() and super() used with constructors in java programming?

774


What is an empty class? What functionality does it offer in Java?

977


What is empty string literal in java?

791


Is there any sort function in java?

848


What is the default value of byte datatype in java?

692