Difference between system.gc() and runtime.gc()

前端 未结 7 870
谎友^
谎友^ 2020-12-12 19:15

What is the difference between System.gc() and Runtime.gc()?

7条回答
  •  伪装坚强ぢ
    2020-12-12 19:53

    Runtime.gc() is a native method where as System.gc() is non - native method which in turn calls the Runtime.gc()

提交回复
热议问题