IS null == null true?

null is nothing but internal Pointer with value zero. So it is comparing two references having value zero. In fact object. ReferenceEquals(null, null) is always true because of this fact so you do not need the second check.

Sizin İçin Seçtik  IS null check in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *