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 garbage collection in Java, and how can it be used ?

Answer Posted / rana.ankur

Garbage collection is a method of jvm.In JAVA when object
iis not use in otherway there is no refrence to that object
it is ellegible for Garbage collection.

demon thread is used and its is known as Garbage
collectior..
and finalize method are also invoke to give last chance to
object to save it imprtant data..thanking you

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If we don’t want some of the fields not to serialize how to do that?

1063


What is a protected method?

1195


What is the default access specifier for variables and methods of a class?

1253


Difference between method overloading and method overriding in java ?

1136


Explain the difference between arraylist and linkedlist in java?

1027


What is lexicographically smallest string?

1131


What is t type java?

1107


How do you clear a method in java?

1048


Explain access modifiers in java.

1103


Is null a keyword in java?

1023


Can we call the constructor of a class more than once for an object?

1140


How can we find the sum of two linked lists using stack in java?

1245


how to create multithreaded program? Explain different ways of using thread? : Java thread

1053


Can we extend singleton class?

1000


What is string english?

1070