Quiz · Wrappers and equality · lesson 4 of 8
Quiz — unboxing null
What happens when this program is compiled and run?
public class Main {
public static void main(String[] args) {
Integer x = null;
System.out.println(x);
int y = x;
System.out.println(y);
}
}