Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what are the differences between final,finally,finalize
methods?

Answer Posted / vibhor bhatnagar

Final :
final is a Modifier
final variable is a constant.
final method cann't be overrid.
final class cann't be subclassed.

Finally :
The finally clause is used to provide the capability to
execute code no matter whether or not an exception is
thrown or caught.

Finalize:
The purpose of finalization is to give an unreachable
object the opportunity to perform any cleanup processing
before the object is garbage collected. OR An object’s
finalize() method may only be invoked once by the garbage
collector.

Is This Answer Correct ?    15 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to optimize the javac output?

1023


What are access specifiers in java ?

1138


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

968


What is a qms manual?

999


Can we inherit a class with private constructor?

1129


What does split function do in java?

1015


What are some examples of variable costs?

955


Java Compiler is stored in JDK, JRE or JVM?

1522


Is singleton set an interval?

966


What does string [] args mean?

1013


Explain about abstract classes in java?

1033


Which object oriented concept is achieved by using overloading and overriding?

1106


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1013


What is the purpose of final keyword and when to use it?

1004


Difference between comparator and comparable in java?

1093