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?

Answers were Sorted based on User's Feedback



Nullpointer exception is a very common exception. Why is it not made as a checked exception?..

Answer / 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

Nullpointer exception is a very common exception. Why is it not made as a checked exception?..

Answer / ajay kumar sharma

When a null value is passed to a method or a method
receieve null(nothing) value either a run time or vice-
versa, JRE or method will throw a nullpointer exception.

It is java's buit-in exception thrown at relevant time.

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More Core Java Interview Questions

What are recursive functions?

0 Answers  


What is the common usage of serialization?

0 Answers  


How to do encapsulation in java?

0 Answers  


What is the difference between length and size in java?

0 Answers  


What are the benefits of operations?

0 Answers  


Why heap memory is called heap?

0 Answers  


What is object-oriented programming?

0 Answers  


What method is used to compare two strings ?

4 Answers  


What is treemap in java?

0 Answers  


What is the difference between a synchronized method and a synchronized block?

0 Answers  


which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None

17 Answers  


What is java ceil?

0 Answers  


Categories