//For XOR operations, 1 XOR 0 produces 1, as does 0 XOR 1. Any other combination produces 0.
//An XOR gives a 1 result if one or the other operand, but not both, is 1. public class MainClass { public static void main(String[] argv) { int i = 2; int b = 4;