Java OCA OCP Practice Question 1015

Question

The developer can force garbage collection by calling System.gc().

  • A. True
  • B. False


B.

Note

Garbage collection cannot be forced by the developer.

The call to System.gc() schedules garbage collection in the thread queue, but it is up to the Java Virtual Machine to allow the garbage collection to run.




PreviousNext

Related