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 java dot?
What is the functionability stubs and skeletons?
What is thread life cycle?
Explain about the security aspect of java?
why java does not support unsigned keyword?
Can an arraylist be empty?
What happens if we override private method?
Can main() method in java can return any data?
When arithmeticexception is thrown?
Is special character in java?
Can you explain the final method modifier?
What is a parameter in simple terms?
What is the method to declare member of a class static?
Do you know how to reverse string in java?
What is the purpose of the return statement?