different between exception and error? explaim check and
uncheck exception

Answer Posted / jreader

Exception and Error both classes extends Throwable class.
checked execption is an exception which need to be mentioned
in Throws list so that compiler can understand what type of
exception perticuler method can throw (forexample-
SQLException) whereas unchecked exception compiler will
handle and it comes at run time (for
example-IndexOutofBoundException)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

1826


How to perform binary search in java?

576


Explain thread in java?

664


What do heavy weight components mean in java programming?

527


How to instantiate member inner class?

630






Is overriding possible in java?

510


What are singleton services?

495


What causes memory leak in java?

484


Why declare Main() method as a static in java ?

600


What is the difference between an argument and a parameter?

544


What are triggers in DB? Explain their types. How do they work?

630


What is the meaning of course?

589


Can you give few examples of final classes defined in java api?

569


What are anonymous inner classes?

567


What does @param args mean in java?

556