1.

Which of these methods initiates garbage collection?(a) gc()(b) garbage()(c) garbagecollection()(d) Systemgarbagecollection()The question was posed to me in unit test.The above asked question is from Java.lang topic in chapter Exploring java.lang & java.io of Java

Answer» RIGHT ANSWER is (a) GC()

EXPLANATION: NONE.


Discussion

No Comment Found

Related InterviewSolutions