2012年2月19日

Reference API

摘要: Reference typessoft: for cachingweak: for fast cleanup (pre-finalizer)phantom: for safe cleanup (post-finalizer)Reference queues: for notificationsSoft references: for quick-and-dirty caching onlyCleared when the VM runs low on memoryHopefully in LRU fashionTuned with -XX:SoftRelLRUPolicyMSPerMBhow 阅读全文

posted @ 2012-02-19 01:28 grepp 阅读(179) 评论(0) 推荐(0) 编辑

java7

摘要: try with resources: new with java7try(FileInputStream in = new FileInputStream(file)){//blabla}//不要再写下面的这个玩意了。//finally{//in.close();//} 阅读全文

posted @ 2012-02-19 00:30 grepp 阅读(116) 评论(0) 推荐(0) 编辑

导航