A
Q. What is the output of the following?
Code:
Integer integer = new Integer(4);
System.out.print(integer.byteValue());
System.out.print("-");
int i = new Integer(4);
System.out.print(i.byteValue()
System.out.print(integer.byteValue());
System.out.print("-");
int i = new Integer(4);
System.out.print(i.byteValue()
- Correct Answer - Option(C)
- Views: 14
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.