As per the order of precedence of operators, () is evaluated before unary operators like ++ or --. But let us consider the following code:-
int x = 1;
x = 2 + (x++);
If x++ is executed first, the value of x should have been updated to 2, and hence the value of x should have been 4. However, on executing the code, the value of x is 3. Does this mean that the expression was evaluated without considering the () around x++, or am I missing something?
The expression will be evaluated from left to right.
The Java® Language Specification – Chapter 15. Expressions
The parentheses are not denoting when the unary operator is evaluated.
I suggest reviewing the following Java tutorial.
Operators (The Java™ Tutorials > Learning the Java Language > Language Basics)