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 the use of finalize()Method
please explain with an example

Answer Posted / mrudang

Sometimes u have seen that some objects of java need to
perform an non- java resoures like file handler etc..

Now Suppose that object going to distroy.So java provides
the mechanism that some specific action will perform when u
delect or try to distory that object..

The opration that u want to perform when such kind of
object Distory is written in finalize method...

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a static class in java?

1057


What is java jit compilers?

1060


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

1123


Is map sorted in java?

1111


Can we execute a program without main() method?

1087


What does void * mean?

1109


What are the types of methodology?

1154


What is a pattern what is an anti pattern?

1033


What are the 7 types of characters?

1129


What is the use of arraylist class in java?

1128


What is blank final variable?

1114


Explain about automatic type conversion in java?

1090


Explain list interface?

996


What is the difference between Array and Hash Table?

1079


Which is the best sorting technique in java?

1032