Answer Posted / shabana
n general error is which nobody can control or guess when it
occurs.Exception can be guessed and can be handled. In Java
Exception and Error are sub class of Throwable.It is
differentiated based on the program control.Error such as
OutOfMemory Error which no programmer can guess and can
handle it.It depends on dynamically based on architectire,OS
and server configuration.Where as Exception programmer can
handle it and can avoid application's misbehavior.For
example if your code is looking for a file which is not
available then IOException is thrown.Such instances
programmer can guess and can handle it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a flag variable?
Is java a virus?
Differentiate between vector and array list.
What is java argument list?
What is null object in java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
How do you calculate roots in java?
What is increment in java?
What do you mean by a JVM?
What is return data type?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
Why charat is used in java?
Can a constructor call another constructor?
How do you stop a thread in java?
What is hashtable and explain features of hashtable?