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

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

767


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

805


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2742


Should we create system software ( e.g operating system ) in java ?

787


What are maps interfaces in the java collections? : java collections

775


What are the considerations to be made in case of loops in java ?

782


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1753


What are the different types of collections views being provided by the map interface? : java collections

798


my interviewer asked me what technical specification you used how to answer that question

2113


What is the Spring2.5 MVC Navigation flow?

5751


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

753


Which interface does java.util.hashtable implement?

912


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1816


What are the different types of features of the java collections framework? : java collections

812


What are the main classes of the list interfaces? : java collections

781