1.

What is the output of this program?

public class LeftShift_Operator
{
public static void main(String args[])
{
byte A = 65;
int i;
byte b;
i = A << 2;
b = (byte) (A << 2);
System.out.print(i + " " + b);
}
}

A. 250 2
B. 260 2
C. 260 4
D. 230 6
E. 210 4
Answer» D. 230 6


Discussion

No Comment Found

Related MCQs