Hi,
int i=3;
byte c = i;
a) The operand to the right of the assignment operator must be a byte, char, short, or int.
b) Operand on the right must be in the range of the operator on the left c) Operator on the left must be a byte, short, or char.
Anything else required an implicit cast.
The above example...satisfies all three conditions...
Then why the compilation error..
You have missed the keyword "final"
put int i as
final int i=3..and then try..