ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what are Checked & Unchecked exceptions ?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what are Checked & Unchecked exceptions ?
Answer
# 1
Checked exceptions should be taken care by the user using 
try and catch blocks otherwise runtime error occurs
for eg:
class.forName() method throws ClassNotFoundException which 
should be caught between try and catch blocks

Unchecked exceptions are taken care by the jvm itself, user 
need not worry about these type of exceptions
for eg:
Integer.parseInt() method throws NullPointerException which 
need not be placed between try and catch blocks
 
Is This Answer Correct ?    2 Yes 0 No
Aparna
 
  Re: what are Checked & Unchecked exceptions ?
Answer
# 2
Checked Exceptions must be caught and thrown by the user
otherwise compile  time error will be displayed saying it
must be catched. We've to catch those exceptions using try
and catch blocks. 
Eg:Class.forName() throws ClassNotFoundException, when
trying to load the specified file in class.forName().

whereas Unchecked Exceptions are handled by jvm, user need
not to handle those exceptions.
 
Is This Answer Correct ?    2 Yes 0 No
Harmeet
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the return type of read()?  2
How the elements are organized in GridBagLayout?  1
Which class has no duplicate elements?  8
Explain Event handling in AWT? TCS1
byte a=5; byte b=5; byte c=a+b; System.out.println(c); whats the o/p? Wipro5
why the abstract class has default constructor?  1
What is a native method?  2
What is left shift and right shift?  1
Which are thin and thicK wrapper Class's in Java?  1
Why do we use public static with the main function in Java? Infosys7
How you can create a radio buttion using Checkbox class?  1
what is the difference between statis block and static variable  5
What is data abstraction? Elaborate with example? BMC3
What is the middleware?  2
What is thread? BMC5
what is the Yield() method used in threads? Accenture2
If two threads call a static method at the same point of time, what will happen? KPIT1
what is synchronization  3
Inorder to specify a container?s layout, which method is used?  1
What is an Exception ?  6
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com