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

Can a variable be local and static at the same time?

943


Explain java coding standards for constants?

952


How do you add an element to a hashset in java?

940


Can private method static?

865


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2059


What is a private class in java?

970


What is another word for methodology?

970


Java is Pass by Value or Pass by Reference?

994


What comes to mind when someone mentions a shallow copy in java?

1061


What are the main differences between notify and notifyAll in Java?

1037


What do you mean by static variable?

1015


What is indexof in java?

939


Write a program to find the whether a number is an Armstrong number or not?

954


What are the high-level thread states in java programming?

1000


What is immutable in java?

1009