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 / syed sikandar bakht

when an object in memory is no longer refered by a variable,
the garbage collector automatically move it to garbage
collection.
instead of calling destructor JVM do it automatically, as we
use destructor in c++ to destroy the object.

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What should I import for arraylist in java?

1089


What are synchronized methods and synchronized statements in java programming?

1067


Can we override private methods?

1105


What class allows you to read objects directly from a stream in java programming?

1137


How do you remove all elements from an arraylist in java?

1093


What is default constructors?

1069


Can you call a method in a method?

1160


What is a class component?

1218


what do you mean by marker interface in java?

1020


Which of the classes will have more memory allocated?

1017


What is += mean in java?

1049


How is hashcode calculated in java?

1084


What is java thread dump, how can we get java thread dump of a program?

1067


What is the purpose of sizeof operator?

1117


What is boolean law?

1127