- 博客(1)
- 收藏
- 关注
转载 java == 与equal 的区别
== 判定的是对象的等价性,必须是实实在在地是同一个对象才返回true。判定基本型的值是否相等。 int i1 = 47; int i2 = 47; System.out.println(i1 == i2); //output: true //基本型包装类 Integer n1 = new Integer(47); Integer n2 = new I
2016-11-16 21:32:25 210
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人