class Test
{
public static void main(String [] args)
{
Integer i = new Integer(0);
add(i);
System.out.println(i);
}
static void add(Integer i)
{
int val = i.intValue();
val+=3;
i = new Integer(val);
}
}
What would be the output?
Options
- Compile Error
- 0
- 3
- Runtme Exception
CORRECT ANSWER : 0
Write your comments