Answer Posted / modi
An error is an irrecoverable condition occurring at runtime.
Such as OutOfMemory error. These JVM errors and you can not
repair them at runtime. While exceptions are conditions that
occur because of bad input etc. e.g. FileNotFoundException
will be thrown if the specified file does not exist. Or a
NullPointerException will take place if you try using a null
reference. In most of the cases it is possible to recover
from an exception (probably by giving user a feedback for
entering proper values etc.).
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is null a string in java?
Can java run on google chrome?
What do you mean by platform independence?
What is the loop in java?
Why isn’t there operator overloading?
How do you find the independent variable?
How long will it take to learn java?
What is the difference between hashmap and hashtable in java?
What is oop in java?
Is array synchronized in java?
Why java is object oriented?
How do singleton patterns work?
What if constructor is protected in java?
What are the four integer types supported by java?
What are the features in java?