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

1 Expert Approved Answer
Step: 1 Unlock

The correct option is B Calling Systemgc Garbage collection in Java is a process that deals with mem... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!