JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
SCPJ2
Originally posted by Ryan Upton:
--final short s = 10;
--char c=s;
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.
Rob
SCJP 1.4
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |