What is the difference between error and exception and
explain in simple words not whatever is given in the book.
Answer Posted / muffy.jad@gmail.com
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
| Is This Answer Correct ? | 26 Yes | 1 No |
Post New Answer View All Answers
Explain public static void main(string args[]).
What is module in project?
What is keyword auto for?
How do you replace a string in java?
What is the purpose of checked and unchecked exceptions in JAVA?
How do you find the absolute value?
How do you read a char in java?
Why string is immutable or final in java
What is core java used for?
What is a generic code?
What is the do while loop syntax?
What are different data types?
What are the six ways to use this keyword?
Why put method is idempotent?
How can I become a good programmer?