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...

What are the differences between unchecked exception, checked exception, and errors?

Answer Posted / hr@tgksolutions.com

• An Unchecked exception inherits from RuntimeException (which extends from exception). The JVM treats RuntimeException differently as there is no requirement for the application code to deal with them explicitly.
• A checked exception inherits from the exception class. The client code has to handle the checked exceptions either in a try-catch clause or has to be thrown for the super-class to catch the same. A checked exception thrown by a lower class (sub-class) enforces a contract on the invoking class (super-class) to catch or throw it.
• Errors (members of the error family) usually appear for more serious problems, such as OutOfMemoryError (OOM), that may not be so easy to handle.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What languages are pass by reference?

1043


What do you understand by access specifiers in Java?

1007


Which non-unicode letter characters may be used as the first character of an identifier?

1005


What are JVM.JRE, J2EE, JNI?

1097


Highest level event class of the event-delegation model?

4001


What are the object and class classes used for?

1036


Is 0 true or false?

998


explain autoboxing in java?

992


Have you ever used hashtable and dictionary?

1011


What are synchronized methods and synchronized statements in java programming?

1007


What is a "pure virtual" member function?

1089


Can you access non static variable in static context?

1034


Tell us something about different types of casting?

917


What is string syntax?

1047


Does java have a compiler?

1024