Java Order Of Operations
Which of the following is an example of using parentheses to change the order of operations in a Java arithmetic expression?
// Using parentheses to alter the order of operations
int result = (2 + 3) * 4;
A
int result = 2 + 3 - 4;
B
int result = 2 + 3 * 4;
C
int result = (2 + 3) * 4;
D
int result = 2 + (3 * 4);
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | psak12 | 3 | 3 | 1m 32s | 208 |
| #2 | waynechen0110 | 1 | 1 | 0m 00s | 100 |
| #3 | adedokuntaiye006 | 1 | 1 | 0m 04s | 96 |
| #4 | l.alzahrani04 | 1 | 2 | 0m 00s | 90 |
| #5 | sgarv2513 | 1 | 2 | 0m 00s | 90 |
| #6 | sathilak000 | 1 | 1 | 0m 17s | 83 |
| #7 | sailajavadlamani33 | 1 | 3 | 0m 00s | 80 |
| #8 | varunrajaram1 | 1 | 3 | 0m 00s | 80 |
| #9 | abdulboriyxon.bositxonov.2008 | 1 | 1 | 0m 20s | 80 |
| #10 | rglive24 | 1 | 1 | 0m 22s | 78 |
APFIVE