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
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
What is an algorithm in java collection framework? : java collections
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
Should we create system software ( e.g operating system ) in java ?
What are maps interfaces in the java collections? : java collections
What are the considerations to be made in case of loops in java ?
HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS
What are the different types of collections views being provided by the map interface? : java collections
my interviewer asked me what technical specification you used how to answer that question
What is the Spring2.5 MVC Navigation flow?
What are the different types of ways where you can iterate over a list? : java collections
Which interface does java.util.hashtable implement?
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
What are the different types of features of the java collections framework? : java collections
What are the main classes of the list interfaces? : java collections