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();
Java 1.2 course notes and work plan edited from several sources. This is a work in process and is constantly being refined, though may not be updated to the latest Java releases. Included is a collection of Java certification practise questions and answers.
No comments:
Post a Comment