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 / pranab dutta

When a Java object becomes unreachable to the program, then
it is subjected to garbage collection. The main use of
garbage collection is to identify and discard objects that
are no longer needed by a program so that their resources
can be reclaimed and reused.

Is This Answer Correct ?    325 Yes 35 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use return in constructor?

1000


Why is singleton not thread safe?

1100


What is the difference between iterator and enumeration ?

1042


What is the benefit of abstract class?

995


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1132


What are the parts of a method?

1026


How do you define a singleton class?

1153


What is thread pool in java with example?

1063


Can list contain null in java?

1142


What is return keyword in java?

1105


Where are global variables stored?

1010


What types of index data structures can you have in java?

1312


What about anonymous inner classes in java?

1076


What is a type parameter in java?

1056


Can an integer be null java?

1053