Without the explicit null assignment, if the object being created is large enough, then Eden gets full and the garbage collector cannot reclaim the currently referenced object.

 
  • 如果没有显式地赋空变量,而且所创建的对象足够大,那么Eden就会填满,并且垃圾收集器就不能收集当前所引用的这个大型对象。
今日热词
目录 附录 查词历史