what is the difference between checked and unchecked
Exceptions?
Answer Posted / aravinda reddy
1) Checked Exceptions extends Exception and
UncheckedExceptions extends RuntimeException.
2) Checked Exception must be caught in the code using try -
catch-finally or declared thrown where as unchecked
exceptions no need to catch or thrown declared
3) None is functionally better than the other
4) Checked Exception is most common excpetions while
coding, so may be authors have made it as mandatory to
handle the excpetion while coding
5) We can create custom checked and unchecked exceptions by
extending Exception and RuntimeException.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS
How do I find jre path in windows?
What is the enumerator of the java collection framework? : java collections
What are the different types of features of the java collections framework? : java collections
What is the Spring2.5 MVC Navigation flow?
How is hashset maintained in memory by java ?
Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.
What are the types of interface used in the java collections? : java collections
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
What is the use of hashcode in java ?
What are the types of the main implementing classes in the map interfaces? : java collections
Which sorting algorithm is used by collections.sort() in java ?
Should we create system software ( e.g operating system ) in java ?
What are the differences between the java collection and the java list? : java collections