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 synchronization? : Java thread
How to create com object in Java?
What is the purpose of the strictfp keyword?
What should I import for arraylist in java?
How can we make a class singleton?
What is methodological framework?
Why we do exception handling in java and how many types of exceptions are there?
What about features of local inner class?
What are the principle concepts of oops?
Can we print null in java?
How do you take thread dump in java?
Can we split string with in java?
Can you sort a list in java?
What is type parameter in java?
What is procedure overloading?