different between exception and error? explaim check and
uncheck exception

Answers were Sorted based on User's Feedback



different between exception and error? explaim check and uncheck exception ..

Answer / malligontla

Exception is caused due to programmer mistake where as error
is because of the jvm failure. Checked exception user should
handle the exception to ensure the smooth flow of the
program without any break IOException, unchecked exception
is the user might or might not handle the exception example
is Arithmetic exception

Is This Answer Correct ?    7 Yes 0 No

different between exception and error? explaim check and uncheck exception ..

Answer / 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

different between exception and error? explaim check and uncheck exception ..

Answer / nitin jain

Checked exceptions check at the time of compile the program
where unchecked exception check at runtime.

Is This Answer Correct ?    3 Yes 0 No

different between exception and error? explaim check and uncheck exception ..

Answer / guest

exception is an method for use skip an error

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is an Exception ?

9 Answers  


Difference between association, composition and aggregation?

0 Answers  


In a container there are 5 components. I want to display all the component names, how will you do that?

0 Answers  


What is the Concept of Encapsulation in OOPS

0 Answers   HCL,


Variables used in a switch statement can be used with which datatypes?

0 Answers  






Is heap stored in ram?

0 Answers  


Why is it important to initialize a variable?

0 Answers  


What will be the initial value of an object reference which is defined as an instance variable?

0 Answers  


Why is inheritance used in java?

0 Answers  


what is the diffrence between class and object?

5 Answers  


Is null an object java?

0 Answers  


What is Runtime class and its purpose?

2 Answers  


Categories