Q. What is the output of the below java code with autoboxing?
Code:
public class AutoBoxingTest2
{
static void show(int reading)
{
System.out.println("Reading: " + reading);
}
public static void main(String[] args)
{
Integer a = Integer.valueOf(10);
show(a);
}
}
β
Correct Answer: (B)
Reading: 10