posted 19 years ago
There is an implicit narrowing conversion from a byte, short, char, or int to a byte, short, or char when the source is a constant expression that can be evaluated at compile time and the value fits in the target. This does not apply to arguments in method invocations.
See JLS 5.2 Assignment Conversion.
[ January 07, 2005: Message edited by: Mike Gershman ]
Mike Gershman
SCJP 1.4, SCWCD in process