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 are the important features of Java 9 release?
What is the longest unicode character?
Is set ordered in java?
What is a stringbuilder?
Where local and global variables are stored?
Which class should you use to obtain design information about an object in java programming?
What are the advantages of arraylist over arrays?
How to make a class or a bean serializable?
How do you create a bulleted list?
What is the statements?
What is the symbol for average?
What is prefix of a string?
What is java used for on a computer?
What is flush () in java?
What is lambda programming?