Question: How do you force garbage collection to occur at a certain point? A. Calling System.forceGc() B. Calling System.gc() C. Calling System.requireGc() D. Calling GarbageCollection.clean() E.
How do you force garbage collection to occur at a certain point?
A. Calling System.forceGc()
B. Calling System.gc()
C. Calling System.requireGc()
D. Calling GarbageCollection.clean()
E. None of the above
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
The correct option is B Calling Systemgc Garbage collection in Java is a process that deals with mem... View full answer
Get step-by-step solutions from verified subject matter experts
