- 博客(3)
- 收藏
- 关注
原创 String对象真的可以用==比较吗?
前一阵子用findbug插件寻找bug,发现了一个很奇怪的bug,内容如下:subTargetNode.addText( (null == subTarget || "" == subTarget.trim() ) ? "_blank" : subTarget );[ES] Comparison of String objects using == or != [ES_COMPARING
2008-07-07 01:39:00 964
转载 Java中关于构造函数继承的相关问题
class Person { private String name=""; private int age=0; public Person() { System.out.println("person无参数构造函数"); } public Person(String name,int age) {
2008-07-07 00:28:00 367
转载 【转载】Making Java Objects Comparable
by Budi Kurniawan 03/12/2003 In real life, objects are often comparable. For example, Dads car is more expensive than Moms, this dictionary is thicker than those books, Granny is older than
2008-07-02 00:48:00 319
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人