System gc and Runtime gc are two methods to request JVM to run Garbage collector. The basic difference between System gc and Runtime gc in Java is that System gc is a class method while Runtime gc is an instance method.