Question PRG-JAVA-0020
HardWhich statement about Java's garbage collection is correct?
- A.
Garbage collection runs only when the program ends
- B.
Calling System.gc() always frees memory immediately
- C.
Sign up free to see the answer and a step-by-step explanation.