What is garbage collection in Java, and how can it be used ?
Answer Posted / samji
When a Java object becomes unreachable to the program, then
it is subjected to garbage collection. The main use of
garbage collection is to identify and discard objects that
are no longer needed by a program so that their resources
can be reclaimed and reused.
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is object english?
What is the difference between overriding & overloading?
Describe string intern() methodology
Write a program to show whether a graph is a tree or not using adjacency matrix.
Which non-unicode letter characters may be used as the first character of an identifier?
Can finally block be used without a catch?
Program to Find the second largest element in an array.
Can a class be declared as protected?
What is the difference between a break statement and a continue statement?
How you can force the garbage collection?
What is the use of conditional statement?
Is an integer an object?
Print Vertical traversal of a Binary Tree.
Why is it important to initialize a variable?
What is the difference between static class and normal class?