Answer Posted / sandeep tyagi
The functional diiference, in terms of the compiler, is
that you don't have to declare errors in throws clauses on
methods, or catch them.
Conceptually, an Error means something has gone wrong with
your program, which should usually give up and crash,
whereas an exception is for an unusual situation that you,
as a programmer, anticipated as a possibilty. So, for
example, a divide-by-zero is an Error, but attempting to
read a file and finding it doesn't exist is an Exception.
Is This Answer Correct ? | 78 Yes | 55 No |
Post New Answer View All Answers
How do you differentiate abstract class from interface?
What modifiers may be used with a top-level class?
What is string array?
What are the differences between c++ and java?
What is the current version of java?
Differentiate between stringbuffer and stringbuilder in java.
What is thread count in java?
What is an object's lock and which object's have locks in java programming?
What does it mean to be immutable?
How will you reverse a singly-link list?
What is linkedlist in java?
List some important characteristics on jre
What is the difference between throw and throws in java?
Why is static used?
Is break statement can be used as labels in java?