CSC300 / CSC402: Null on the Left [4/24] Previous pageContentsNext page

Integer x = null;
Integer y = 3000;
x=null, y=3000
                  x==y : false
   Objects.equals(x,y) : false
Exception in thread "main" java.lang.NullPointerException
  at algs12.Hello.main(Hello.java:15)
eqi04

Previous pageContentsNext page