Justify the following statement in the context of Java. “ boolean can be true (Non-zero) or false(Zero)”.

In java boolean datatype is used to take value true or false.  This is the type that is returned by all relational operators, as in the case a<b. boolean is also required by conditional expressions that govern the control statement such as if and for.… Read More »Justify the following statement in the context of Java. “ boolean can be true (Non-zero) or false(Zero)”.