The legal values for a boolean in java are choose all that applies
-
1,0
-
TRUE,FALSE
-
true , false , TRUE,FALSE
-
true , false
In Java, the boolean primitive type has exactly two literal values: true and false, both strictly in lowercase. Java is case-sensitive, so TRUE and FALSE are not valid boolean literals (they are not defined keywords). Option C incorrectly includes uppercase variants, while Option A suggests numeric values which are completely invalid for boolean types.
In Java, the boolean literals are strictly the lowercase keywords true and false — Java has no implicit conversion from integers (1/0) to boolean, and it is case-sensitive, so TRUE/FALSE are not valid boolean literals (they'd just be undefined identifiers). Only true and false are legal, which is why that is the sole correct option.