JAVA August 24, 2020

GC和GC Tuning

Words count 3.8k Reading time 3 mins.

C语言中申请内存: malloc free

C++: new delete

Java: new ?

自动内存回收,编程上简单,系统不容易出错

手动释放内存,容易出现两种类型的问题

  1. 忘记回收
  2. 多次回...
Read article
0%