java.lang package has gc() method - Java
Q. In which package do we have the gc() method?
- Published on 16 Jun 15a. java.lang package
b. java.util package
c. java.awt package
d. java.io package
ANSWER: java.lang package
The gc() method runs the garbage collector.