?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Boolean Declaration

APCSA-GUW8KV

Which is a valid declaration for a boolean variable?

A

boolean x = "true";

B

bool y = false;

C

boolean x = true;

D

boolean y = 1;

E

bool x = "false";