Java Compound Assignment Operator Properties
All of the following statements about Java’s compound assignment operators are true EXCEPT:
A
Compound assignments help to simplify code by reducing repetition.
B
a *= b is equivalent to a = a * b.
C
The expression a += b is not equivalent to a = a + b in any context.
D
Compound operators automatically perform type casting if needed.
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | sunilgsfdc | 1 | 1 | 0m 00s | 100 |
| #2 | lsj08030922 | 1 | 1 | 0m 25s | 75 |
| #3 | ianrojas473 | 1 | 1 | 0m 43s | 57 |
| #4 | raufyildirim95 | 1 | 1 | 0m 46s | 54 |
| #5 | richa.tuli | 0 | 1 | 0m 01s | -11 |
Items per page:
10
1 – 5 of 5
APFIVE