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

Is 0 an irrational number?

0 Answers  


What are the major advantages of internal iteration over external iteration?

0 Answers  


What does flag mean in java?

0 Answers  


What is identifier with example?

0 Answers  


What is the difference between Stream Reader and Stream Writer?

4 Answers  






How to store image in arraylist in java?

0 Answers  


what is the diff b/w arraylist and vector?

6 Answers   Code Genesis, Genesis, Sprintine Labs,


What are design patterns and please explain?

0 Answers  


What is stringbuffer in java?

0 Answers  


When you say String is immutable, what do you mean by that? Say I have String s = "Ness" s= s+"Technologies"; What will happen? If the value gets appended, then what is the meaning of immutable here?

5 Answers   Ness Technologies,


What are the changes in java.io in java 8 ?

0 Answers  


How to make a method thread safe without using synchronized keyword?

8 Answers   Persistent, Societe Generale,


Categories