Incorrect, I'm afraid. In both cases, the floating point number will be
rounded to an integer (
JLS 5.1.3). In the conversion to byte, the integer is subsequently
truncated to a byte value.
This two-step process can have remarkable side effects, for instance
This prints
The explanation is left as an exercise for the reader

It would be impossible to truncate a float to an int anyway - the representations are completely different, you
don't get an int by simply slicing a few bits off a float. In fact int and float have the same number of bits (32).
- Peter
[This message has been edited by Peter den Haan (edited November 26, 2001).]