2017年3月7日

Java中的不可变类

摘要: 什么叫不可变类? 《Effective Java》将不可变类定义如下: An immutable class is simply a class whose instances cannot be modified. All of the information contained in each 阅读全文

posted @ 2017-03-07 22:32 imhuster 阅读(526) 评论(0) 推荐(0) 编辑

call by value or reference ?

摘要: Java中参数传递是传值还是传引用呢? 阅读全文

posted @ 2017-03-07 13:13 imhuster 阅读(744) 评论(6) 推荐(3) 编辑

导航