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

Can finally block be used without a catch?

1057


Why are pointers not secure?

1074


What is the function of http?

1066


What is struts in java?

1091


What is the main use of java?

1222


Which sorting algorithm is in place?

1017


what is thread in Java ?

1206


Explain spliterator in java8?

1099


How do you achieve polymorphism in java?

1033


What is object english?

1112


What is difference between array and vector?

1138


Is array a class?

995


What is the difference between inheritance and encapsulation?

1196


What are the changes in java.io in java 8 ?

1080


What is thread safe java?

973