Please explain how come the output is 9 ? : The output is 9.and i cant get my head around the whole Bit wise XOR concept.



    public class XOR {
	public static void main(String[] args){
		int a= 12;
		int b= 5;
		int c=a^b;
		System.out.print(c);
	}

}