Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is double in java?

967


What is object class in java?

907


What are basic data types?

1082


How to call one constructor from the other constructor ?

1043


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

2293


What is a singleton in genetics?

1047


explain local datetime api in java8?

1003


Is sizeof a preprocessor?

979


How many ways can we create singleton class?

955


Is java pass by value or pass by reference?

977


What’s the difference between callable and runnable?

1092


What are advantages and disadvantages of OOPs?

1126


Can we pass a primitive type by reference in java? How

894


What is identifier give example?

1023


How do you convert string to int in java?

1065