码迷,mamicode.com
首页 > 编程语言 > 详细

Tips--java

时间:2016-01-25 16:38:16      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:

Difference between "==null" and ".equals(null)"

== reference compare;

.equals() is a method;

notification: while sample = null; sample.equals(null) will throw NullPointerException.

refer topic links: topics link

 

Tips--java

标签:

原文地址:http://www.cnblogs.com/flowerencedew/p/4956008.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!