What is the difference between System.gc() and Runtime.gc()?
System.gc()
Runtime.gc()
From looking at the source code: System.gc() is implemented as
Runtime.getRuntime().gc();
So it's just a convenience method.