Casting has higher precedence than arithmetic operations—any cast is applied to the value that immediately follows it. For example, if we write
int value = (int) 11 * 0.25, the cast is no help: the literal
11 is already an integer, so the cast
(int) has no effect.
casting has higher precedence than arithmetic operations.
Share this highlighthttp://www.safaribooksonline.com/a/computer-science-an/5207034/