7. == and != The comparison and not equal to operators are allowed with null in Java . This can made useful in checking of null with objects in java.3 Oca 2020
Read moreCan null == null?
If you think of it from a programming (i.e. pointer reference) point of view then, yes, two references of null have the same pointer value and, since most of the popular languages will fall back to pointer-equality if no custom equality is defined, null does equal null .
Read more