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

Is a case study a method or methodology?

655


Can a java program have 2 main methods?

788


Can we call a non-static method from inside a static method?

779


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

847


What is a literal coding?

734


What is time complexity java?

769


What does string [] args mean?

746


What is a method signature java?

809


what is the swingutilities.invokelater(runnable) method for? : Java thread

786


How is garbage collection controlled?

922


What is a package in java? List down various advantages of packages.

979


What is an class?

768


What is a boolean in java?

771


What does string intern() method do?

829


How do you identify if jvm is 32-bit or 64-bit from java program?

733