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 does null mean in java?

1069


What is a native method in java programming?

1068


What is static in java?

1097


What is the SimpleTimeZone class?

2277


What is the access scope of protected access specifier?

999


What is array class in java?

1068


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

1169


What is difference between hashset and hashmap in java?

1016


Is oracle charging for java?

1034


What is static block?

1131


Can you achieve runtime polymorphism by data members?

1149


How do you stop a thread in java?

1059


How to solve the problem of generating the unique hash keys with hash function?

1916


What is byte [] in java?

1015


Can we serialize singleton class?

1042