What is garbage collection in Java, and how can it be used ?
Answer Posted / rintu kumar kanp
Finding garbage and reclaiming memory allocated to it.
Garbage holds unreferenced objects
ex:-
Student ali= new Student();
Student khalid= new Student();
ali=khalid;
Now ali Object becomes a garbage,
It is unreferenced Object
it be used When the total memory allocated to a Java
program exceeds some threshold.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you compare objects in java?
What is the program development process?
How does split work in java?
What is busy spin, and why should you use it?
What do you know about the garbage collector?
What is hashing principle in java?
How many types of voids are there?
What is a void in java?
What is json parser in java?
Write code of any action class?
What is array size in java?
What are the difference between string, string builder, and string buffer in java?
What is a heavyweight component?
What is java reflection?
Is vector synchronized in java?