What is the difference between System.gc() and Runtime.gc()?
System.gc()
Runtime.gc()
Runtime.gc() is a native method where as System.gc() is non - native method which in turn calls the Runtime.gc()