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
When will you define a method as static?
What is a method header?
How do you declare an empty string?
How do you write a good declaration?
What is lexicographically smallest string?
Explain the use of volatile field modifier?
Can we create an object of static class in java?
What do you understand by final value?
What is thread safe java?
What does split function do in java?
What is bytecode in java ?
what is meant by abstract class?
What is return type in java?
What's the base class in java from which all classes are derived?
What language is java written?