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
what is the purpose of the final in the try-catch-final
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the purpose of the final in the try-catch-final
Answer
# 1
That's not final,that one is finally, which is followed 
after the try-catch block,It helps "garbage collection".
 
Is This Answer Correct ?    0 Yes 0 No
Maha
 
  Re: what is the purpose of the final in the try-catch-final
Answer
# 2
yes it correct it is finally,the use of finally is,if we 
did not catch the exception in try/catch block also finnaly 
will catch.
 
Is This Answer Correct ?    0 Yes 2 No
Madhu
 
 
 
  Re: what is the purpose of the final in the try-catch-final
Answer
# 3
final- declares a constant
finally- handles exceptions
finalize- helps in Garbage collection
 
Is This Answer Correct ?    5 Yes 0 No
Vikas
 
  Re: what is the purpose of the final in the try-catch-final
Answer
# 4
finally is an optional one its not a mandatory statement
after try-catch blocks
 
Is This Answer Correct ?    0 Yes 0 No
Ramakrishna Challapalli
 
  Re: what is the purpose of the final in the try-catch-final
Answer
# 5
Finally is a block where we can write the code to free up 
the resources like File closing,socket obj closing .
 
Is This Answer Correct ?    0 Yes 0 No
Srinivasa
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); } Logica-CMG8
Keywords in Exceptions?  1
What are the names of interfaces that doesn't consists of method/s ?  3
What is Distributed Application and what is its usage?  1
What is the % operator?  2
what is Hashmap & Hashtable wirh example? Saksoft4
which one the better thread emplemented thread or extended ? Fidelity3
what is bytecode? watz the difference between machine code and bytecode? Oracle4
what is Dictionary? and what purpose it is used for?  2
What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?  2
What is the difference between a Window and a Frame?  1
What is numeric promotion?  1
What is meant by JVM ?  3
What is "finally" keyword?  3
Which method is used to find that the object is exited or not?  1
suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?  2
how can we import the user defined package without classpath?  1
Hai all I want to print given array in reverse order Ex: int a[]={1,2,3,4,5};display this array in reverse order.  2
what is an virtual function TCS2
How can you take string into InputStream?  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