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  >>  Java J2EE  >>  Java Related  >>  Swing
 
 


 

 
 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 is difference between checked and unchecked exception 
plz explain examples ?
 Question Submitted By :: Jawahar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is difference between checked and unchecked exception plz explain examples ?
Answer
# 1
CHECKED EXCEPTION IS TO BE HANDLED BY USE TRY AND CATCH
EXCEPTION....THAT HAS TO BE THROWN AND CATCH USEING THIS
EXCEPTION...WERE AS UNCHECKED EXCEPTION IS RUN TIME EXCEPTION.  
THIS EXCEPTION IS NOT CHECKED AT THE TIME OF COMPILATION
HENCE IT CANNOT BE HANDLED WITH TRY AND CATCH.....
 
Is This Answer Correct ?    1 Yes 0 No
Vijay
 
  Re: what is difference between checked and unchecked exception plz explain examples ?
Answer
# 2
A checked exception is one, which a block of code is likely
to throw, and represented by throws clause.It represents
invalid conditions in areas outside the immediate control of
the program (invalid user input, database problems, network
outages, absent files).
In Java it is expected that a method 'throws' an exception
which is a checked exception.They are subclasses of Exception.
While unchecked exceptions represent defects in the program
(often invalid arguments passed to a non-private method).
According to definition in The Java Programming Language, by
Gosling, Arnold, and Holmes,"Unchecked runtime exceptions
represent conditions that, generally speaking, reflect
errors in your program's logic and cannot be reasonably
recovered from at run time." They are subclasses of
RuntimeException, and are usually implemented using
IllegalArgumentException, NullPointerException, or
IllegalStateException
It is somewhat confusing, but note as well that
RuntimeException (unchecked) is itself a subclass of
Exception (checked)
 
Is This Answer Correct ?    2 Yes 0 No
Rakesh
 
 
 

 
 
 
Other Swing Interview Questions
 
  Question Asked @ Answers
 
What is the difference between AWT & Swing? Deshaw6
how can u handle runtime exceptions in java plz explain with examples briefly? Fujitsu2
Difference between AWT and Swing compenents?  1
can we create a object in static block class A { static { A a=new A(); } }  2
what is the diff's between swing and applet? Patni7
What is the default look and feel of a Swing Component?  1
what is difference between checked and unchecked exception plz explain examples ? Fujitsu2
What are all the components used in Swing?  1
What is meant by Swing?  4
What does x mean in javax.swing?  3
what do u mean by GUI framework  1
How can you draw using Swing components?  1
when we right click on the JTable using mouse it works properly but how to right click on JTable in java using keyboard what should be the code for the same.....? Thanks Nitin  1
What are the features of JFC?  1
What is the corresponding Layout for Card in Swing? Patni2
Does Swing contains any heavy weight component?  3
what do u mean by GUI framework  1
What are tab pans?  2
What is the use of JTree?  2
Explain the differences between an applet and a Japplet?  1
 
For more Swing 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