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 is the significance of continue jump statement? Explain with an example.

1249


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

990


What are the types of java languages?

929


Write a program based on Java script program.

1068


How many types of operators are there?

929


Define interface in java?

1023


Is a class subclass of itself?

1026


What is command line argument in java?

1075


Explain about main() method in java ?

998


What are the 5 types of research methods?

1085


Can sleep() method causes another thread to sleep?

985


What is the maximum size of a string in java?

1002


What is function and method in java?

905


What is difference between java and java ee?

967


Is break statement can be used as labels in java?

911