3 ms·
Have a look at the precedence table for Java: http://introcs.cs.princeton.edu/11precedence/ http://introcs.cs.princeton.edu/11precedence/ The cast has higher p
by fjh 15y ago
Have a look at the precedence table for Java: http://introcs.cs.princeton.edu/11precedence/ http://introcs.cs.princeton.edu/11precedence/
The cast has higher precedence than multiplication, so the scaling doesn't help at all, unless you use parenthesis to force the right order of evaluation.
- dalke 15y agoOh, wow! I didn't know that about Java. I see then why I got all the downvotes.