GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 236 of 921    Print  
What is the difference between exception and error

Answered by Scott on 2005-05-12 09:50:36: An Exception can be caught and recovered: ArrayIndexOutOfBoundsException means you tried to access a position of an Array that does not exist - no big deal. 
 
An Error is unrecoverable: OutOfMemoryError means that the JVM has no more memory to contin



  
Total Answers and Comments: 3 Last Update: December 20, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 12, 2005 09:50:36   #1  
Scott        

RE: What is the difference between exception and error
An Exception can be caught and recovered: ArrayIndexOutOfBoundsException means you tried to access a position of an Array that does not exist - no big deal. 
 
An Error is unrecoverable: OutOfMemoryError means that the JVM has no more memory to contin

 
Is this answer useful? Yes | No
December 15, 2006 06:32:22   #2  
syed abdul kather        

RE: What is the difference between exception and error...
Thanks for your answer
 
Is this answer useful? Yes | No
December 20, 2006 08:11:33   #3  
hari        

RE: What is the difference between exception and error...
exception will give user friendly message which is defined in exception handling,whereas error message is standard given by oracle.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape