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
What are the different types of ways where you can iterate over a list? : java collections
What is an algorithm in java collection framework? : java collections
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
What is iterator in the java collections framework? : java collections
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.?.
Which interface does java.util.hashtable implement?
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 ?
How do I find jre path in windows?
What are the types of interface used in the java collections? : java collections
What is the difference between comparable and comparator in java.util pkg?
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 differences between the java collection and the java list? : java collections
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS
What are the queues in the java collection framework? : java collections