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
What is class variable java?
How many times finalize method will be invoked? Who invokes finalize() method in java?
How do you write a conditional statement?
What is the maximum size of byte array in java?
How many threads can java run?
Can a class extend 2 classes in java?
What data type is string java?
What are the types of methodology?
Why are the destructors for base class and derived class called in reverse order when the program exits
What is the difference between class & structure?
Why can't we make a class private in java?
What are namespaces in java?
How is string stored in java?
What is difference between this and super keyword?
What is an empty string in css?