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 / syed sikandar bakht

when an object in memory is no longer refered by a variable,
the garbage collector automatically move it to garbage
collection.
instead of calling destructor JVM do it automatically, as we
use destructor in c++ to destroy the object.

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What one should take care of, while serializing the object?

955


What are the advantages of defining packages in java?

1036


What is casting in java programming?

1086


What are the 3 types of control structures?

1059


How to obtain a performance profile of java program

1101


What is merge sort in java?

1029


What is the use of singleton class?

1013


Is array serializable java?

1049


What is command line argument in java?

1221


What is variable in java?

1046


Can an interface implement another interface?

1090


What is Classloader in Java?

1292


Can you call a method on a null object?

1060


What is busy spin, and why should you use it?

1128


How do you convert bytes to character in java?

1052