GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 406 of 507    Print  
What is the difference between caught exception and uncaught exception?

  
Total Answers and Comments: 3 Last Update: February 25, 2008     Asked by: vishnu 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 03, 2007 06:59:19   
sujatham Member Since: January 2006   Contribution: 142    

RE: What is the difference between caught exception an...
Caught exceptions are called checked exceptions. Checked exception occur at compile time.Uncaught exceptions are called unchecked exceptions. Unchecked exceptions occur at runtime. Checked exceptions must be either declare or catch the exception. Unchecked exceptions does not need to declare or catch the exception.
 
Is this answer useful? Yes | No
February 23, 2008 23:47:23   
sampra Member Since: February 2008   Contribution: 278    

RE: What is the difference between caught exception and uncaught exception?
  • compile time exception is called caught exception and run time exception is called uncaught exception

 
Is this answer useful? Yes | No
February 25, 2008 00:02:11   
sivachandran55 Member Since: February 2008   Contribution: 4    

RE: What is the difference between caught exception and uncaught exception?
caught exception:

That mean when u declare the particular type of exception(checked and unchecked exception) u will get caught exception.

uncaught exception:

That mean when u wont diclare the particulare type of exception(like class not found exception(checked exc) arithamatic exception(un checked exc)) that time u will get some uncaught exception

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape