Sunday, 6 September 2009

Java Certification Question 0087

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

1) System.free();
2) System.setGarbageCollection();
3) System.out.gc();
4) System.gc();





Answer)

4) System.gc();

No comments: