what is difference between Exception and Error?

Answer Posted / pranab garai

Exceptions are also kind of errors which we can hadle at
both compile time and run time by using try and catch
blocks.
These are two types: Compile time and runtime.
Sql and IO operations are come under compile time array
index out of bounds and null pointer these are come under
runtime exceptions

Errors are the problems which we cant hadle, like stack
overflow and memory out of bounds like that...

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you compare two strings lexicographically?

531


explain multi-threading in java?

543


What is a nonetype?

555


When throw keyword is used?

576


What is string data?

547






What do you mean by checked exceptions?

529


What is the static variable?

568


What is the importance of static variable?

580


When should I use a singleton?

545


What are the limitations of procedural programming approach?

519


What are exceptions

633


Can we use static class instead of singleton?

570


If you do not want your class to be inherited by any other class. What would you do?

555


How to run a JAR file through command prompt?

708


What is a data structure java?

494