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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   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 purpose of the finally clause?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the purpose of the finally clause?
Answer
# 1
The finally clause is used to ensure that a single statement
or a set of statements are executed irrespective of whether
or not an exception is thrown/caught inside a method.
 
Is This Answer Correct ?    1 Yes 0 No
Ranganathkini
 
  Re: What is the purpose of the finally clause?
Answer
# 2
finally clause is used to get executed irrespective of the 
exception raising inorder to conserve the resources
 
Is This Answer Correct ?    2 Yes 0 No
Ravikiran
 
 
 
  Re: What is the purpose of the finally clause?
Answer
# 3
the code block in finally block must be executed if
exception throws or not,except if we write system.exit(0);
 
Is This Answer Correct ?    3 Yes 0 No
Dhawal
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
where do we use init()  2
what is ejb? what is the importance of ejb? Photon1
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.  1
What is meant by class loader and how many types are there? Apple1
what is an object and how do you allocate memory to it? Wipro3
How applets will communicate with each other?  1
what is difference between abstract and interface? can i give real time example for the two topics?  6
how to call a method in different package?  4
what is overloading in java? DNS4
How many objects are created for a singleton class Ness-Technologies4
is java support call by reference and call by value, if supports please explain?  3
what is Dictionary? and what purpose it is used for?  2
Can we declare static variables in JSP page. TCS3
What is the difference between Resultset and Rowset. IBM5
What is the difference between throw and throws? Cap-Gemini2
How are this and super used?  6
What is the % operator?  2
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly? Satyam1
What is casting ?  2
What is meant by JVM ?  3
 
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