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

Can we initialize the final blank variable?

834


What is an example of declaration?

774


Are constructors methods?

789


What is the difference between member variables initialization and assignment in a constructor?

944


What are java packages?

821


Explain about the performance aspects of core java?

789


Name few "optional" classes introduced with java 8 ?

891


What is ellipsis in java?

826


Mention the default values of all the elements of an array defined as an instance variable.

758


List some features of the abstract class.

809


Explain differences between checked and unchecked exceptions in java?

858


What are invisible components?.

1923


What is the relationship between clipping and repainting under awt?

883


What is covariant return type?

885


Give any two differences between C++ and java.

838