Q. Which of the following is the correct syntax for suggesting that the JVM performsgarbage collection? (Solved)
1. System.free();
2. System.setGarbageCollection();
3. System.out.gc();
4. System.gc();
- d. System.gc();
1. System.free();
2. System.setGarbageCollection();
3. System.out.gc();
4. System.gc();