Q. What will be the output of the following Java program?
Code:class bitwise_operator
{
public static void main(String args[])
{
int a = 3;
int b = 6;
int c = a | b;
int d = a & b;
System.out.println(c + " " + d);
}
}
β
Correct Answer: (A)
7 2