- 博客(6)
- 收藏
- 关注
原创 著名的邮件列表存档网站(Famous Mailing lists archive sites)
When you want to subscribe to a mailing list, there is always a tip that suggests you search the FAQ or archives first to see if anyone has already posted the same topic that you meet. Some mailing-li
2009-09-23 14:30:00 2032
原创 开源项目的映像站点(http and ftp mirrors for opensource projects)
Here I summarized many famous Unix-like or Linux-like systems and the http and ftp mirrors for getting them.While, this is not my original purpose, I can download each project from Apache Software F
2009-09-21 18:05:00 1617
翻译 Effective Java Item9-在覆盖equals方法的同时覆盖hashCode
Effective Java 2nd Edition Reading NotesItem9: Always override hashCode when overrideing equals在覆盖equals方法的同时覆盖hashCode 每当覆盖equals方法的时候,一定要覆盖hashCode方法。如果没有如此做的话,那么将违反hashCode方法的规范,并导致与基于Has
2009-09-10 18:30:00 1617
翻译 Effective Java Item8-在覆盖equals(Object类的nonfinal方法)时遵循接口规范
Effective Java 2nd Edition Reading NotesItem8: Obey the general contracts when overriding equals.在覆盖equals(Object类的nonfinal方法)时遵循接口规范 覆盖equals方法开起来很容易,但是实际上覆盖错误的情况有很多中情况,其结果是极其严重的。防止覆盖错误最好的办法就
2009-09-10 18:27:00 1521
翻译 Effective Java Item7-不使用Finalizers
Effective Java 2nd Edition Reading NotesItem7: Avoid Finalizers不使用Finalizers。 Finalizers是不可预知的,有时是危险的,并且是不必要的。在C++中,析构函数用于回收资源,而在Java中,通过GC来回收资源。析构函数还用于回收非内存资源,在Java中,通过try{}finally{}来完成同样的工
2009-09-10 18:26:00 2326
翻译 Effective Java Item6-消除作废的对象引用
Effective Java 2nd Edition Reading NotesItem6: Eliminate Obsolete Object References消除作废的对象引用。 在C或者C++中需要程序员自己进行内存管理,而Java通过使用GC来自动管理不再使用的对象。但是在有些时候,显式的消除废弃的对象应用是必要的。例如在下面的代码中,StackInRisk类中的p
2009-09-08 16:34:00 1153
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人