Java - Wrapper Classes
What is the output of the following code?
Integer a = 5; int b = a + 10; System.out.println(b);
Integer a = 5; int b = a + 10; System.out.println(b);
Integer a is autounboxed to int to add 10.b is 15 and printed.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions