0
Is 1 represent true state in java or not and why ?
2 odpowiedzi
+ 6
You can't assign 0 or 1 to a boolean value and you can't check e.g.
if (boolean == 1);
Results in a type exception.
+ 3
@Tashi thanks, I learned what the boolean literal is in java.
I delete my wrong answer to avoid it confuses people.