what is difference between Exception and Error?

Answer Posted / manikandan

Error occurs at runtime and cannot be recovered, Outofmemory
is one such example. Exceptions on the other hand are due
conditions which the application encounters such as
FileNotFound exception,ArrayIndexOutofBountException etc.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between an inner class and a sub-class?

510


Can you create an object of an abstract class?

555


What are the advantages of autoboxing?

540


What is the list interface?

612


What is the byte order of byte buffer?

568






What is the difference between Array and Hash Table?

549


What are the two ways in which thread can be created?

603


What is the effect of keeping a constructor private?

477


Can you call a method on a null object?

567


Can an object subclass another object?

558


What is replacefirst in java?

578


What is the use of a conditional inclusion statement in Java ?

591


Can list have duplicates in java?

523


Is the empty set a singleton?

544


What are the advantages of java?

515