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
Can we override private method in java?
Difference between object instantiation and construction ?
What is public static void main?
Write a program to print all permutations of string?
What is not thread safe?
Who developed java?
Explain different types of thread priorities ?
Why are generics used?
What language is an assembler written in?
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
How are this() and super() used with constructors in java programming?
What is an empty class? What functionality does it offer in Java?
What is empty string literal in java?
Is there any sort function in java?
What is the default value of byte datatype in java?