Hi all,
Integral literals are treated as
ints. When they appear in an assignment, for example, in <code>byte b = 3</code> the '3' is an
int but
Java applies assignment conversion and because '3' is within the range of a byte, the assignment succeeds.
The same is true for <code>char c = 655</code>.
See
JLS §5.2 ------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform