![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
读书笔记
coolcaicai
我是宇宙超级无敌cool菜菜!
展开
-
Effective Java——Item 1: Consider static factory methods instead of constructors
Item 1: Consider static factory methods instead of constructors考虑用静态的工厂方法来代替构造函数 One advantage of static factory methods is that, unlike constructors, theyhave names.好处之一是,不像构造函数只能以类名命名,静态的原创 2008-07-15 20:12:00 · 793 阅读 · 0 评论 -
Item 6: Eliminate obsolete object references 消除过期对象
Item 6: Eliminate obsolete object references消除过期对象Generally speaking, whenever a class manages its own memory, the programmershould be alert for memory leaks.当一个类自己来管理内存的时候,程序员必须要警惕内存泄露。什么叫自原创 2008-08-19 19:34:00 · 928 阅读 · 0 评论