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 is a function easy definition?
What are multiple inheritances? Is it supported by java?
Why is multithreading important?
How long will it take to learn java?
What's the default access specifier for variables and methods of a class?
Why array is used in java?
What is the difference between jfc & wfc?
What is remote method invocation (rmi)?
Can classes declared using the abstract keyword cab be instantiated?
What is anti pattern in cyber security?
Which is bigger float or double?
What is java basic concept?
Why are lists ordered in java?
What is the purpose of nested class in java?
What are the basic concepts of OOPS in java?