Which error is produce from below Java code?
Choose the correct option from below list
byte x = 50;
x = x * 10;
(1)x cannot contain value 10
(2)x cannot contain value 100, limited by its range
(3)No error in this code
(4)* operator has converted x * 10 into int, which can not be converted to byte without casting
Answer:-(4)* operator has converted x * 10 into int, which can not be converted to byte without casting | |