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 default size of set in java?
What are the restriction imposed on a static method or a static block of code?
What are decalarations?
How can you read content from file in java?
How does singleton class work?
What is thread start?
What happens if we override only equals?
Differentiate between a class and an object.
What are the changes in java.io in java 8 ?
Is an array a vector?
Is string is a data type?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What is null mean in java?
What is the use of isempty in java?
What is difference between word and integer?