What will be the error in the following Java code?

byte b = 50;
b = (byte)(b * 50);

1
b cannot contain value 100, limited by its range
2
*operator has converted b * 50 into int, which can not be converted to byte without casting
3
b cannot contain value 50
4
No error in this code
5
Question Not Attempted

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation