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

What is json parser in java?

1101


How java is similar to c?

1089


Enlist few advantages of inheritance?

1130


What's the access scope of protected access specifier?

1096


how we can make a write-only class in java?

1080


What is the purpose of the runtime class in java programming?

1117


What is the difference between inner class and nested class?

1152


Is binary a low level language?

962


What is file in java?

1081


What is the use of static methods?

1093


What is the major difference between linkedlist and arraylist?

1120


How do you use nextline in java?

1022


What is the main method java?

1082


What is a bufferedreader?

1163


What about anonymous inner classes in java?

1078