What is garbage collection in Java, and how can it be used ?

Answer Posted / veer

When an object has of no use in a program then it has to be
discarded to free the occupied space by it so that other
object can fill the space.That is what Garbaghe collection
is.

Is This Answer Correct ?    43 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class variable java?

666


How many times finalize method will be invoked? Who invokes finalize() method in java?

671


How do you write a conditional statement?

604


What is the maximum size of byte array in java?

634


How many threads can java run?

667






Can a class extend 2 classes in java?

655


What data type is string java?

632


What are the types of methodology?

621


Why are the destructors for base class and derived class called in reverse order when the program exits

1822


What is the difference between class & structure?

666


Why can't we make a class private in java?

616


What are namespaces in java?

614


How is string stored in java?

660


What is difference between this and super keyword?

619


What is an empty string in css?

623