Hoàng Diễm Quỳnh
New member
What will be the error in the following Java code?
A. b cannot contain value 100, limited by its range
B. * operator has converted b * 50 into int, which can not be converted to byte without casting
C. b cannot contain value 50
D. No error in this code
Code:
byte b = 50;
b = b * 50;
B. * operator has converted b * 50 into int, which can not be converted to byte without casting
C. b cannot contain value 50
D. No error in this code