Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

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

A System.free()
B System.setGarbageCollection()
C Syste.out.gc()
D System.gc()
Answer & Explanation
Option: [D]

System.gc() is a program that runs for garbage collection. But it not reliable.

Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Random GK Questions

Assam Direct Recruitment Test Series

Computer Science Topics