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 / rintu kumar kanp

Finding garbage and reclaiming memory allocated to it.
Garbage holds unreferenced objects
ex:-
Student ali= new Student();
Student khalid= new Student();
ali=khalid;
Now ali Object becomes a garbage,
It is unreferenced Object


it be used When the total memory allocated to a Java
program exceeds some threshold.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of array are there?

952


give an example for encapsulation?

986


how can you take care of mutual exclusion using java threads? : Java thread

991


What is passing parameters in java?

978


What is the difference between import java.util.date and java .util?

1003


What is the difference between this() and super() in java?

984


Why wait and notify methods are declared in object class?

975


Why java uses the concept of the string literal?

1004


Can static method access instance variables ?

1071


Is 0 true or is 1 true?

902


Why collection is called framework in java?

928


Difference between nested and inner classes ?

1052


What about main() method in java ?

971


What are the advantages and disadvantages of reference counting in garbage collection?

972


What modifiers may be used with an inner class that is a member of an outer class in java programming?

1019