?

Free Version

Upgrade subject to access all content

Easy

Boolean Assignment

APCSA-UZFOZX

Given a boolean variable isEmpty, which of the following is a valid Java assignment statement?

A

isEmpty = "false";

B

isEmpty == true;

C

isEmpty = 5;

D

isEmpty = true;

E

isEmpty = "true";