Is 1 True Or False Java?
Is 1 True Or False Java? Java, unlike languages like C and C++, treats boolean as a completely separate data type which has 2 distinct values: true and false. The values 1 and 0 are of type int and are not implicitly convertible to boolean . Is 1 false or true? Like in C, the