gc() is a daemon thread.gc() method is defined in System class that is used to send request to JVM to perform garbage collection.
Can you answer this question?
Write Answer1 Answers