Java Compound Assignment Operator Properties
All of the following statements about Java’s compound assignment operators are true EXCEPT:
A
Compound operators automatically perform type casting if needed.
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 assignments help to simplify code by reducing repetition.
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | sunilgsfdc | 1 | 1 | 0m 00s | 100 |
| #2 | busemagngr | 1 | 1 | 0m 22s | 78 |
| #3 | Potter16 | 1 | 1 | 0m 23s | 77 |
| #4 | lsj08030922 | 1 | 1 | 0m 25s | 75 |
| #5 | ianrojas473 | 1 | 1 | 0m 43s | 57 |
| #6 | raufyildirim95 | 1 | 1 | 0m 46s | 54 |
| #7 | richa.tuli | 0 | 1 | 0m 01s | -11 |
Items per page:
10
1 – 7 of 7
