adplus-dvertising
frame-decoration

Question

Which of these methods initiates garbage collection?

a.

gc()

b.

garbage()

c.

garbagecollection()

d.

Systemgarbagecollection()

Posted under Java Programming

Answer: (a).gc()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of these methods initiates garbage collection?

Similar Questions

Discover Related MCQs

Q. Which of these methods loads the specified dynamic library?

Q. Which of these method can set the out stream to OutputStream?

Q. Which of these values are returns under the case of normal termination of a program?

Q. Which of these is a super class of wrappers Double and Float?

Q. Which of the following methods return the value as a double?

Q. Which of these methods can be used to check whether the given value is a number or not?

Q. Which of these method of Double wrapper can be used to check whether a given value is infinite or not?

Q. Which of these exceptions is thrown by compareTo() method defined in a double wrapper?

Q. Which of these packages contain classes and interfaces used for input & output operations of a program?

Q. Which of these class is not a member class of java.io package?

Q. Which of these interface is not a member of java.io package?

Q. Which of these class is not related to input and output stream in terms of functioning?

Q. Which of these is specified by a File object?

Q. Which of these is method for testing whether the specified element is a file or a directory?

Q. Which of these class is used to read and write bytes in a file?

Q. Which of these method of InputStream is used to read integer representation of next available byte input?

Q. Which of these data type is returned by every method of OutputStream?

Q. Which of these is a method to clear all the data present in output buffers?

Q. Which of these method(s) is/are used for writing bytes to an outputstream?

Q. Which of these stream contains the classes which can work on character stream?