Java Compound Assignment Operators
What is printed when the following code segment is executed?
int count = 5;
count++;
count += 2;
count--;
System.out.println(count);
A
7
B
9
C
6
D
8
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | kaisuki | 1 | 1 | 0m 00s | 100 |
| #2 | lsj08030922 | 1 | 2 | 0m 32s | 58 |
| #3 | richa.tuli | 1 | 2 | 7m 09s | -339 |
APFIVE