Program for Bitwise Operators.
0
03 Java Operators.
Program for Bitwise Operators:
Program for Bitwise Operators:
//XORDemo.java
class XORDemo
{
public static void main(String[] args)
{
System.out.println(5 & 6);
System.out.println(5 | 6);
System.out.println(5 ^ 6);
System.out.println(true & false);
System.out.println(true | false);
System.out.println(true ^ true);
}
}
0 comments: