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

An application running on a system computer uses some
memory, which makes memory management a significant issue
for any programming language. As Java is comparatively high-
level language, the memory management in Java is automatic.
To make it more efficient, we need to understand garbage
collection, i.e. freeing memory from objects that are no
longer in use.
Garbage collection is the process of automatically freeing
objects that are no longer referenced by the program. This
frees a programmer from having to keep track of when to
free allocated memory, thus preventing many potential bugs
and problems.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about anonymous inner classes ?

1085


What is the difference between hashmap and hashtable? What is an interface?

1170


What are accessor methods in java?

1016


What languages are pass by reference?

1054


What are three ways in which a thread can enter the waiting state in java programming?

1166


What is object cloning in Java?

1112


What are features of java?

1026


What’s the difference between applets and standalone program?

1051


How do I print a “?

998


How does linkedlist work in java?

934


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

983


What is comparable and comparator interface? List their differences

1110


In java, how many ways you can take input from the console?

1000


Is vector ordered in java?

1002


Can we have any other return type than void for main method?

957