Computer Science, asked by tnareshedu, 1 month ago

Is it possible to force garbage collection and how?​

Answers

Answered by parakkalsivadasan195
0

Answer:

Your best option is to call System. gc() which simply is a hint to the garbage collector that you want it to do a collection. There is no way to force and immediate collection though as the garbage collector is non-deterministic

Answered by jayanthganesh819
2

Answer:

it is not possible to force garbage

Explanation:

hope it's help you

please make me as brilliant

Similar questions