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

Can we declare register variable as global?

893


What is a default constructor and also define copy contrucyor?

1045


What will be the output of round(3.7) and ceil(3.7)?

1066


Explain what are final variable in java?

1017


Are arrays passed by reference in java?

876


What is difference between adapter class and listener?

966


Can a constructor call another constructor?

922


What is the size of int in 64-bit jvm?

1008


Tell me about different OOPS concepts.

954


What is multi-catch block in java?

1015


Write a program to print fibonacci series up to count 10.

850


Explain when we should make an instance variable private.

1038


Can list be final in java?

869


Why multiple inheritance is not supported by java?

925


What an i/o filter in java programming?

1005