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 / brijendra(xavient)

1-Final:Java have final class,finalmethod and
finalvariables.
*Finalclass can not be extended and the variables under the
final class can not be change.
*Finalvariables can not be changed.
*finalmethods can not be override or overriden.

2-Finally-Finally is a block which is used for catching the
uncaught exception which not handled by try block.

3-Finalize()- finalize method helps in garbage collection.A
method,that is invoked before an object is discarded by the
garbage
collector, allowing it to clean up its state

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the JDB in depth & command line.

996


What is the difference between C++ and Java and your preferences?

1103


What is join () in java?

952


What is the difference between compile-time polymorphism and runtime polymorphism?

978


Explain about oops concepts.

1107


What is parsing in grammar?

1027


What is the purpose of the main method?

972


What is the difference between variable declaration and variable initialization?

1014


What is the final keyword in java?

1404


What is exception handling in java?

1020


What type of value does sizeof return?

991


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

1042


What is operator overloading. Is it is supported in java?

1000


What is the purpose of an interface?

1027


In case of inheritance what is the execution order of constructor and destructor?

1106