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


Please Help Members By Posting Answers For Below Questions

What are the different types of ways where you can iterate over a list? : java collections

579


What is an algorithm in java collection framework? : java collections

584


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2567


What is iterator in the java collections framework? : java collections

542


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1821






Which interface does java.util.hashtable implement?

679


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1684


How do I find jre path in windows?

532


What are the types of interface used in the java collections? : java collections

591


What is the difference between comparable and comparator in java.util pkg?

595


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.

1593


What are the differences between the java collection and the java list? : java collections

618


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

564


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1583


What are the queues in the java collection framework? : java collections

554