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
What are internal and external variables?
Explain method local inner classes ?
How does java pattern compile work?
What is Session reduplication and how its done?
What is multi level inheritance in java?
What one should take care of, while serializing the object?
What is a native method in java programming?
What is the difference between final, finally and finalize()?
What is the benefit of using enum to declare a constant?
What do you mean by hashing?
How to sort numbers in java without array?
Difference between this() and super() ?
Is an integer an object?
What are the advantages of autoboxing?
Is java programming easy?