Which operator is having the highest precedence?
In Java and most programming languages, operator precedence determines the order in which operators are evaluated in expressions. Let's analyze the options: 1. Postfix Operators: Examples: `a++`, `a--`. These operators have the highest precedence among all operators. They are evaluated after their operand but before other operations.\[\] 2. Unary Operators: Examples: `++a`, `--a`, `!`. These have a lower precedence than postfix operators but are still higher than many other operations.\[\] 3. Shift Operators: Examples: `<<`, `>>`, `>>>`. They have a lower precedence than both postfix and unary operators.\[\] 4. Equality Operators: Examples: `==`, `!=`. These have the lowest precedence compared to the other listed options.\[\] \[\] Correct Answer: (a)
Reinforce your conceptual grasp with related questions from CUET-MCA 2021:
Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.
Start Free Mock Test Series →