Which one of the following is the correct syntax for suggesting that the JVM performs garbage collection?

1.3 Which one of the following is the correct syntax for suggesting that the JVM performs garbage collection?
A) System.free();
B) System.setGarbageCollection();
C) System.out.gc();
D) System.gc();


Leave a Reply