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  What is the purpose of objects requireNonNull?

Leave a Reply

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