If each operand in assignment and mathematical operations advances to before executing an expression int(if it has no flags L, f, d);
And adding intto a smaller primitive type (e.g. byte) should be done with narrow-casting;
So how does the following assignment work?
byte a = 100;
If 100 is an integer, therefore casting is required to enter it in bytes.
source
share