A
Q. What will be the output of the following Java code?
public class Boxer1
{
Integer i;
int x;
public Boxer1(int y)
{
x = i+y;
System.out.println(x);
}
public static void main(String[] args)
{
new Boxer1 (new Integer(4));
}
}
- Correct Answer - Option(D)
- Views: 7
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.