Uses of JAVA Boolean Operators

class Main{
public static void main(String args[]){
    System.out.println(3<2);
    System.out.println(5>1);
    System.out.println(0==1);
    System.out.println(1!=2);
    System.out.println(2<=5);
    System.out.println(5>=2);
    }
}


The Output is Given Below:
false
true
false
true
true
true

0 comments:

Post a Comment