?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Arithmetic Operations Order of Precedence

APCSA-FAVVGX

What is the output of the following code segment?

int x = 15+2*3+7/4;
System.out.println(x);
A

20

B

22

C

23

D

42

E

43