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); } }
Options:
A .  7 2
B .  7 7
C .  7 5
D .  5 2
Answer: Option A
And operator produces 1 bit if both operand are 1. Or operator produces 1 bit if any bit of the two
Submit Your Solution hear: