Q. Which 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();
πŸ’¬ Discuss
βœ… Correct Answer: (D) System.gc();

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
267
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
97%
Success Rate