what is difference between Exception and Error?

Answers were Sorted based on User's Feedback



what is difference between Exception and Error?..

Answer / steffy

ERROR:
Erroor will be occur in compile time.
EXCEPTION:
Exception will occured in running time.

Is This Answer Correct ?    2 Yes 7 No

what is difference between Exception and Error?..

Answer / milan kumar

Exception means abnormal condition which is occur in our
code during program execution.
but error means it can't handle by the system.for
example,thread dead,out of memory,overflow.

Is This Answer Correct ?    7 Yes 14 No

what is difference between Exception and Error?..

Answer / ved

Errors are the abnormal conditions which can not be handled
by your program and the program will immediately interrupt
while exceptions are those abnormal conditions which your
program can handle with the techniques of error handling.
Errors can not be handled and will stop uour program...

Is This Answer Correct ?    1 Yes 8 No

what is difference between Exception and Error?..

Answer / ankur bhargav

exception mins run time
error mins your logical error in you programming

Is This Answer Correct ?    2 Yes 12 No

what is difference between Exception and Error?..

Answer / salman khan

the spellings of both r different

Is This Answer Correct ?    13 Yes 25 No

what is difference between Exception and Error?..

Answer / vinay

Exceptions can be system defined or CAN BE USER DEFINED
(means user can enforce exceptins) whereas run time errors
are thrown by system only.

Is This Answer Correct ?    13 Yes 30 No

Post New Answer

More Core Java Interview Questions

take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

0 Answers  


What is starvation?

0 Answers  


How to perform Singleton of the java class object on multi JVM?

2 Answers  


Name four container classes.

0 Answers  


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

0 Answers   HCL,






What is garbage collector?

0 Answers  


what is difference between String buffer and String builder?

5 Answers   Benchmark,


What is double parsedouble in java?

0 Answers  


Why heap memory is called heap?

0 Answers  


Is call by reference possible in java?

0 Answers  


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

0 Answers  


How will you communicate between two applets?

0 Answers  


Categories