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   SiteMap shows list of All Categories in this site.
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 is unreachable code problem in multiple catch statements
 Question Submitted By :: Shivakrishna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is unreachable code problem in multiple catch statements
Answer
# 1
if v just gve a default exception block,bfre the specific
catch statement it ll create a unreachable code exception
e.g
catch(Exception e)
{System.out.println(unknown exception);}
catch(ArithmeticException e)
{System.out.println("Division by zero");}
 
Is This Answer Correct ?    4 Yes 0 No
Deepthi
 
  Re: what is unreachable code problem in multiple catch statements
Answer
# 2
Subclass exception handler should come first then the 
superclass has to come next. Then only code wil compile 
otherwise subclass exception will be never reached results 
compilation error.
 
Is This Answer Correct ?    4 Yes 0 No
Sriragv
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Difference between local and global transaction ? iFlex1
How applets will communicate with each other?  1
What is the % operator?  2
Hi Friends.. can any one provide the real time example for methodoverloading and methodoverriding ......... Honeywell2
What is the Set interface?  2
how to use this key word in java programming?  5
How can a class be accessed, If no access modifiers are declared?  2
How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused object Parmanently or it maintains something.  2
Explain the term serialization? Wipro6
what is filters and its use? Virtusa2
What is interface and its use? HCL6
Default layout of Dialog object?  1
If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.  2
What happens when a main method is declared as private? Sun-Microsystems8
types of applets?. TCS3
how you will prevent inheritance is there any other way other than inheritance? Wipro4
What is difference between abstract class & final class  5
what modifiers are used with top-level class?  2
What is stop(), suspend(), resume() method?  3
what is a transient variable?  4
 
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