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

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

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

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 19:46

    See the docs

    System.gc() is equivalent to Runtime.getRuntime().gc()

提交回复
热议问题