Please find the solutions about precedence..

Operators (The Java™ Tutorials > Learning the Java Language > Language Basics)