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 is diffrance between FINALIZE() & FINALLY ?

Answer Posted / srikanth reddy

FINALIZE()is used when object is garbage collected to
cleanup the resource like io straems or database connection
before gc()method to unrefer the object which refered



finally block is also used to close the resource like jdbc
connection etc

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is append function?

941


How many characters is 16 bytes?

944


Can I declare a class as private?

1017


Write the algorithm to check the number non-leaf nodes in a tree.

1009


Which is better 64 bit or 32 bit?

873


What is treeset in java?

941


Is vector ordered in java?

956


What is close method? How it's different from Finalize & Dispose?

998


Why do we need array in java?

957


Does printwriter create a file?

910


What is meant by structural programming?

966


How many types of memory areas are allocated by JVM in java?

1012


How we can make copy of a java object?

1043


What is meant by class loader? How many types are there? When will we use them?

912


Can each java object keep track of all the threads that want to exclusively access it?

908