out. println(“(Object)string == number: ” + ((Object)string == number)); To conclude this post and answer the titular question Does null equal null in Java? the answer is a simple yes .
IS null == null in Java?
out. println(“(Object)string == number: ” + ((Object)string == number)); To conclude this post and answer the titular question Does null equal null in Java? the answer is a simple yes .