values
a5
b10
c15
d20
d20
solve according to JAVA rules
Answers
Answer:
bro java has rules to operate which operators first.
Precedence Operator Type Associativity
15
_______________________________________________
()
[]
· Parentheses
Array subscript
Member selection
Left to Right
14
_______________________________________________
++
-- Unary post-increment
Unary post-decrement Right to left
13
______________
++
--
+
-
!
~
( type ) Unary pre-increment
Unary pre-decrement
Unary plus
Unary minus
Unary logical negation
Unary bitwise complement
Unary type cast Right to left
12
______________
*
/
% Multiplication
Division
Modulus Left to right
11
______________
+
- Addition
Subtraction Left to right
10
_____
<<
>>
>>> Bitwise left shift
Bitwise right shift with sign extension
Bitwise right shift with zero extension Left to right
9
_____
<
<=
>
>=
instanceof Relational less than
Relational less than or equal
Relational greater than
Relational greater than or equal
Type comparison (objects only) Left to right
8
_______
==
!= Relational is equal to
Relational is not equal to Left to right
7
_________
& Bitwise AND Left to right
6
__________
^ Bitwise exclusive OR Left to right
5
____________
| Bitwise inclusive OR Left to right
4
______________
&& Logical AND
Left to right
3
_________
|| Logical OR Left to right
2
_______
? : Ternary conditional Right to left
1
_____
=
+=
-=
*=
/=
%= Assignment
Addition assignment
Subtraction assignment
Multiplication assignment
Division assignment
Modulus assignment Right to left
Larger number means higher precedence.