What is the output of this java code and why ?
int a = 5 | 3 ; System.out.println(a);
it's bitwise or:
5 = 110 3 = 011 5 | 3 = 111
That's the bitwise-or operator.
http://leepoint.net/notes-java/data/expressions/bitops.html