1.

Which of the following statement correctly assigns a value 33 to a variable c? byte a = 11, b = 22, c;

A. c = (byte) (a + b);
B. c = (byte) a + (byte) b;
C. c = (int) a + (int) b;
D. c = (int)(a + b);
Answer» B. c = (byte) a + (byte) b;


Discussion

No Comment Found