Is 1 represent true state in java or not and why ?
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.
@Tashi thanks, I learned what the boolean literal is in java. I delete my wrong answer to avoid it confuses people.