Question 14
Back to Exercise
What does System.gc() guarantee?
- A Immediate collection of all garbage
- B Nothing – it only suggests that the JVM run the garbage collector Correct
- C That finalizers run
- D That the program pauses
Correct Answer: Option B
Production code should never depend on it.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!