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
What is int lol?
Why do we need data serialization?
How we can make copy of a java object?
How do you do absolute value in java?
What is an interoperable application in java ?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
Explain about main thread in java?
Can we use static class instead of singleton?
Is a case study a method or methodology?
What is field name?
What is the range of a character variable?
How can you traverse a linked list in java?
How a string is stored in memory?
Explain the difference between jdk, jre, and jvm?
I want to persist data of objects for later use. What is the best approach to do so?