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

Actually garbage collector is a daemon thread. Normally
JVM’s heap stores all objects which is created by new
operator. So objects are occupying memory in heap. Some
objects are not used for long time. So garbage collector do
that work automatically.
Otherwise we call finalization method

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is default locale java?

1126


When do you call copy constructor?

982


Can this keyword be used to refer static members?

1027


Does anyone still use java?

1119


How does a for loop work?

992


What is method reference in java?

1147


What are unchecked exceptions in java?

1045


how is final different from finally and finalize in java?

1063


What is string in java with example?

1040


What is a void method?

928


What are the various access specifiers for java classes?

1065


Can we rethrow the same exception from catch handler?

1135


What are the parts of a method?

984


What is difference between this and super keyword?

990


when you will synchronize a piece of your code? : Java thread

1033