i am taking the sample
test in the CD back of K&B book
the quesiton on bitwise that i have:
public class Bitwise
{
public static void main (
String [] args)
{
int x= 12 & 13;
int y= x ^ 6;
System.out.println(y | 3);
}
The answer is 11.
Can anyone giving me more explaination, do i need to convert 12 and 13 into binary and then doing the &, and get the result plug in x ^ 6, convert 6 into binaray,
Greately appreciate if giving detail.
Regards,