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  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 312 of 492    Print  
What is checked and unchecked exception? How can we know that any exception is checked or unchecked?

  
Total Answers and Comments: 6 Last Update: January 25, 2007     Asked by: diensh 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 22, 2006 01:38:01   #1  
SangeethKrishna K        

RE: What is checked and unchecked exception? How can w...
In java there are possibly two kinds of exceptions be raised! - ->Checked A Cheched exception is a compile time exception ,whick is tackeld by the compiler! --->Unchecked An unchecked exception is somethin that is raised at run time! eg...Stack overflow, etc
 
Is this answer useful? Yes | No
September 22, 2006 05:00:24   #2  
devi        

RE: What is checked and unchecked exception? How can w...
here exception will be checked by using try,catch blocks in the program
 
Is this answer useful? Yes | No
September 22, 2006 21:08:34   #3  
ngoctuan Member Since: August 2006   Contribution: 1    

RE: What is checked and unchecked exception? How can w...
123
 
Is this answer useful? Yes | No
September 25, 2006 03:02:55   #4  
shadab_mca1 Member Since: April 2006   Contribution: 2    

RE: What is checked and unchecked exception? How can w...

Those Exception which are required to show in throws list i.e those exceptions which compiler can not check without throw keyword are kwon as Checked Exception.

runtime execption have a subclass which are not required to be checked i.e compiler can check them which exception to be raised are known as unchecked exception.

All exception are defined in java.lang package


 
Is this answer useful? Yes | No
October 06, 2006 04:42:27   #5  
Kalyan Chakravarthy        

RE: What is checked and unchecked exception? How can w...

Compiler will be having the list of checked exceptions.If the client's program generates these exceptions then the compiler compels the client to handle the exceptions.

examples:ClassNotFoundException,InterruptedException,IllegalAccessException

Where as Unchecked exceptions are ignored by the compiler.The user need not handle these exceptions.These will be handled by the default handler at run time. 

examples:All RuntimeExceptions,Errors and their subclasses


 
Is this answer useful? Yes | No
January 25, 2007 07:47:09   #6  
Sayeed        

RE: What is checked and unchecked exception? How can w...
Cheched are those which are written in its package
 
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