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 package is math in java?
What is a method in java?
Does java allow overriding static methods ?
What happens when a thrown exception is not handled?
State differences between C and Java?
What are the 6 functions?
Is set sorted in java?
Explain different forms of polymorphism?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What is instanceof keyword?
What is getclass () getname () in java?
What is difference between throw and throws ?
What language is an assembler written in?
What is meant by null and void?
What is ascii code?