How can we force the garbage collector to run? | Eklavya Online

How can we force the garbage collector to run?

Garbage collector can be run forcibly using “System.gc()” or “Runtime.gc()”