what is difference between Exception and Error?

Answer Posted / ritesh srivastav

1 exception is a condition that has been occur in piece of code. that can be handle by programmer.
whereas error is occur at runtime of program.that can not be handle by programmer.
2 eg. of exception is no divide by zero
whereas eg. of error is stack over flow.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't we make a class private in java?

526


how to deploy apache tomcat server to weblogic server in java

1583


Explain public static void main(string args[]).

554


How much ram can a 64 bit processor theoretically?

451


Difference between object and reference?

668






What is the difference between a local variable and an instance variable?

534


What are the various access specifiers for java classes?

535


Is singleton thread safe in java?

534


What is the difference between overriding and overloading in OOPS.

539


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

8605


What is sizeof () operator?

561


Which collection is thread safe in java?

496


What is difference between synchronize and concurrent collection in java?

509


What is purpose of applet programming?

622


What is an empty string in css?

513