what is difference between Exception and Error?

Answer Posted / paletipatisrinu

Error : Something goes wrong in our application/program ,
that leads to crash your output/logic is called as error.
the error may be of syntatic error or error which can
easily identify the programmer.

Exception:its unwanted and unexpeceted event its disturb the
normal flow of program execution.
Exception is an object it occurs at run time it
gives system error message and then convert system error
message into user friendly messages

Is This Answer Correct ?    9 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare the static variables and methods in an abstract class?

548


What does sprintf mean?

537


What is difference between path and classpath in java?

487


Why can't we override private static methods?

521


Can we return null in java?

643






What is ternary operator? Give an example.

603


What methods are used to get and set the text label displayed by a button object?

554


What Is Composition?

583


Is arraylist ordered?

563


What do you mean by jjs in java8?

560


What is composition in java?

730


Difference between throw and throws?

622


What is the use of parseint in java?

537


Why does java does not support multiple inheritance? Explain

549


What are the elements of java?

565