to know binary number for any number in java code example Example: binary numbers java int binaryNumber = 0b1001; //binaryNumber == 9