Java expressions are created using a combination of variables and operators. When multiple operators are used in the same expression, Java executes these operators in a specific order. This is called operator precedence.
Here are four operators:
a) ++
b) +
c) ()
d) <<
In which order will these be executed if added into the same expression (high to low precedence)?
a) b, c, d, a
b) c, d, a, b
c) c, a, b, d
d) a, b, c, d
Created by Nancy N.
@10:18 25-Jul-2025
No comments:
Post a Comment