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   To Refer this Site to Your Friends   Click Here
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 the relationship between a method?s throws clause 
and the exceptions that can be thrown during the method?s 
execution?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?
Answer
# 1
The throws clause of a method basically defines the types of
checked exceptions the method can throw during its
execution. This clause alerts the client code that invokes
the method that it has to have suitable try...catch blocks
to handle the checked execeptions.
 
Is This Answer Correct ?    1 Yes 0 No
Ranganathkini
 
  Re: What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?
Answer
# 2
Throws is used in the method definition to mark what all 
exceptions the method can throw, so that the code that 
accesses the method can give the corresponding catch block 
for that exception.
 
Is This Answer Correct ?    0 Yes 0 No
Chinu
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is use of business objects? Tech-Mahindra3
Java support what type of parameter passing ? Wipro6
what is webservices Mind-Tree4
what is the difference between cd & dvd ? Satyam11
What is interface and its use? HCL6
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading? Satyam2
What is casting ?  2
What is meant by class loader and how many types are there? Apple1
adapter class ?  2
How does serialization work Ordain-Solutions2
Can we have a abstract class withought any method? What is a purspose of this?  1
To what value is a variable of the Boolean type automatically initialized?  3
What are the OOAD concepts in java explain with examples? Aricent4
Can a Byte object be cast to a double value?  2
Name the immediate superclass of the MenuComponent class?  1
What is compile time polymorphism? Elementus-Technologies6
When will we use class loader?  1
Howmany address lines are required to addressing 1 MB memory?  2
whats the purposr of using serialization?  6
How to re-get an object that is collected by garbage collector?  1
 
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