CSC300: Null on the Left [5/23] 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