class Operator02 { public static void main(String[] args) { int a = 3; int b = 4; int c = 5; // & 与,且;有false则false System.out.println(a>b & c>b); //f & t = f System.out.println(ab); //t & t = t // | 或;有true则true System.out.println(a>b | cb | c>b); //f | t = t System.out.println(ab); //t | t = t // ^ 异或;相同为false,不同为true System.out.println(a>b ^ cb ^ c>b); //f ^ t = t System.out.println(ab); //t ^ t = f // ! 非;非false则true,非true则false System.out.println( !(a>b) ); //t System.out.println( !(ab & ++c>b); //f & t = f System.out.println(c); // c = 6 //System.out.println(a>b && ++c>b); //f & t = f //++c>b 没有运行 System.out.println(c); // c = 5 //System.out.println(ab); //t & t = t System.out.println("---------"); //t | f = t //|和||的区别 //System.out.println(a