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

Does A Class Inherit The Constructors Of Its Superclass?

1139


Why do we use return statement?

1105


Can we create our own daemon thread?

1031


What is extension method in java?

1092


What is initial size of arraylist in java?

1100


How infinite loop is declared?

1060


Say any two properties in beans?

1110


What is the difference between scrollbar and scrollpane?

1131


What is a war file?

1154


When do we use synchronized blocks and advantages of using synchronized blocks?

1280


Why to use nested classes in java?

1189


Can a class declared as private be accessed outside it’s package?

1063


What lambda means?

1066


What is charat ()?

986


Which is faster call by value or call by reference?

988