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
Can a class be private in java?
What is the purpose of a default constructor?
What are the 6 functions?
What is object-oriented programming?
What is class and its types?
Does anyone still use java?
What is e in java?
What are the 3 types of control structures?
Explain about interthread communication and how it takes place in java?
how to one war file class to another war file class?
What do you understand by garbage collection in Java? Can it be forced to run?
What are features of java?
Can we overload the constructors?
What is the statements?
Is null a string in java?