What is garbage collection in Java, and how can it be used ?
Answer Posted / rana.ankur
Garbage collection is a method of jvm.In JAVA when object
iis not use in otherway there is no refrence to that object
it is ellegible for Garbage collection.
demon thread is used and its is known as Garbage
collectior..
and finalize method are also invoke to give last chance to
object to save it imprtant data..thanking you
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can you use abstract and final both with a method?
What is replaceall in java?
Is math an abstract class in java?
How to sort elements in a parallel array in java?
Can arraylist hold different types java?
Can list be final in java?
What is the difference between final, finally and finalize()?
What is the core java?
What is finalize()?
What is character in data type?
How does hashset works in java?
What is function and method in java?
Can a class extend more than one class?
What do you understand by garbage collection in Java? Can it be forced to run?
What is substring in java?