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 / samji

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 ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object english?

1055


What is the difference between overriding & overloading?

1067


Describe string intern() methodology

1057


Write a program to show whether a graph is a tree or not using adjacency matrix.

1089


Which non-unicode letter characters may be used as the first character of an identifier?

1005


Can finally block be used without a catch?

1003


Program to Find the second largest element in an array.

1176


Can a class be declared as protected?

1004


What is the difference between a break statement and a continue statement?

1026


How you can force the garbage collection?

981


What is the use of conditional statement?

973


Is an integer an object?

954


Print Vertical traversal of a Binary Tree.

1010


Why is it important to initialize a variable?

986


What is the difference between static class and normal class?

1023