Limited access

Upgrade to access all content for this subject

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";

Select an assignment template