Originally posted by Ryan Upton:
--final short s = 10;
That works because the compiler can determine that the range of the final ``s" will always be in range for ``c" therefore no need to cast, right?
Originally posted by Corey McGlone:
This will work. The cast of l to a byte is required because a long has a much wider range than a byte does.