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
What is the difference between iterator and list iterator?
What is difference between final and immutable?
What are the types of arrays in java?
Write a function to find out longest palindrome in a given string?
What are the java ide's? Explain
What is a cup of java?
What is externalizable interface?
Can a class have 2 constructors?
What are the legal operands of the instanceof operator?
What is the major difference between linkedlist and arraylist?
Can we sort hashset in java?
Why do we use string?
Is constructor inherited?
What is a flag and how does it work?
What is split return?