public void gc(){
  System.gc();
}

public void gc ( ) { System . gc ( ) ; }
runs the garbage collector . calling this method suggests that the java virtual machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for quick reuse . when control returns from the method call , the java virtual machine has made its best effort to recycle all discarded objects . the name gc stands for " garbage collector " . the java virtual machine performs this recycling process automatically as needed even if the gc method is not invoked explicitly . the method system . gc ( ) is the conventional and convenient means of invoking this method .
