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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
can u handle an error if u write Thowable in the catch 
class lise 

     try
         {
           some errorneous code
          }catch(Throwable e){ ...}
 Question Submitted By :: Ani.arava
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
Answer
# 1
yes.We can handle by using Throwable in catch block because
it's super class of Exception.
 
Is This Answer Correct ?    2 Yes 0 No
Aseet Padhi
 
  Re: can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
Answer
# 2
No u cant because u cannot compile classes with errors
 
Is This Answer Correct ?    0 Yes 2 No
Manju Kt
 
 
 
  Re: can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
Answer
# 3
Yes we can handle exception or error using throwable in
catch because Throwable is super class of all error and
exception.
 
Is This Answer Correct ?    1 Yes 0 No
Ajay Dhingra
 
  Re: can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
Answer
# 4
Yes we can handle the exception using Throwable in catch
block.There is no compilation error.
 
Is This Answer Correct ?    0 Yes 0 No
Papu
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is an Applet ?  2
What is meant by event handling in SAX parser? Ness-Technologies1
I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing? KPIT5
Name the class that used to read objects directly from a stream? Wipro2
what is use of business objects? Tech-Mahindra3
Difference between the paint() and repaint() methods?  1
What services that container provides?  1
What happens if an exception is not caught?  4
hi to all. well can you please tell me that why String class is immutable? Thanks in advance. Huawei3
What is "Java Native Interface" and how to use it? IBM1
Explain cookies?  2
For which statements we use a label? Wipro3
what is difference between servletconfig and servletcontext? AMDOC3
Name the runtime exceptions that occurs frequently?  4
What is Locale class? MySoft1
what is the difference b/w design pattern and architecture Covansys2
Can you have an inner class inside a method and what variables can you access?  2
What is the GregorianCalendar class? HCL1
whats the purposr of using serialization?  6
How to call a Stored Procedure from JDBC? Satyam2
 
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