Why it is necessary to call garbage collector
Answers
Answered by
0
Answer:It is necessary to call garbage collector..
Explanation:It will collect all the garbage i.e all unwanted memory and relieve the user from any memory management problems
Answered by
0
The purpose 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. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.
Similar questions