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

When an object is no longer referred to by any
variable,java automatically reclaims memory used by that
object.This is known as garbage collection.
System.gc() method may be used to call it explicitly.

Is This Answer Correct ?    182 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three best choices for a development environment?

1103


Explain an intermediate language?

949


Explain different types of wrapper classes in java?

1007


What is a java lambda expression?

1040


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

984


What is java reflection api?

1005


What is java’s garbage collected heap?

954


What modifiers may be used with a top-level class?

1053


What is the purpose of void class?

1059


What invokes a thread's run() method in java programming?

1180


What is the difference between serial and throughput garbage collector?

1091


What is the difference between char and char *?

1070


Can a class be declared as protected?

1002


Is sizeof a preprocessor?

979


What is the difference between inner class and nested class?

1075