?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Integer Expressions

APCSA-WOUX8J

Which of the following is a valid expression?

A
int x = 5.5;
B
double y = 0;
int x = y;
C
int x = (int)2.5;
D
int x = 5 * 2.6;
E
int x = 4.0;