Which package in Java contains the gc() method?

Choose the correct answer

Explanation

The gc() method, used to request garbage collection, is part of the java.lang package in Java.

Which package in Java contains the gc() method? — Java concepts and its programming | PakQuizHub