what is difference between checked exception & unchecked
exception in java?

Answer Posted / vikneswarank

Java runtime exception handler
can not catch all type of exceptions. As such we need
to explicitly deal with them to prevent abrupt program
termination.Some of the examples for this could be
ArrayIndexOutOfBounds, ArithmeticExceptions etc. The
key factor to remember is that checked exceptions are
the ones where we need to use the try and catch blocks
to get the exception problem solved. The same is not
mandatory for the unchecked exceptions and are caught
well and good by the Java run time Exception Handler

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is the session factory thread safe?

909


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1593


For which statements does it make sense to use a label?

802


What is a policy?

2015


How can I scroll through list of pages like the search results in google?

772


How is a java object message delivered to a non-java client?

774


Why are my checkboxes not being set from on to off?

897


What are the difference between RMI and CORBA?

828


How substring() method of string class create memory leaks?

772


Name the class that is used to bind the server object with RMI Registry?

1905


How are commas used in the intialization and iteration parts of a for statement?

821


What are JTA/JTS and how they used by client?

1946


What is difference between object state and behavior?

808


Difference between swing and awt?

831


What is aop(assepct oriented programing)?

790