What is the output of this java code and why ?
int a = 5 | 3 ; System.out.println(a);
This is a bitwise or.
I did not test it. But it must be 7.
101 -> 5 011 -> 3 ---- 111 -> 7 1|1 = 1 1|0 = 1 0|1 = 1 0|0 = 0