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 super constructor?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
If we don’t want some of the fields not to serialize how to do that?
What is the difference between normal report & matrix report?
What is the buffer limit?
Is sizeof a keyword in java programming?
Do we have pointers in java?
why doesn't java run on all platforms?
Is class forname reflection?
What is stack class in java?
Tell me are there implementations for sorting and searching in the java libarary?
Can we execute a program without main?
What are the special characters?
What is the size of a string in java?
Can you start a thread twice in Java?