Underscores are valid in numbers as long as they aren't the first character, last character, or directly on either side of 0x, 0b1, etc. Basically between digits.
For example, 4_294_967_296 is a more standard use of this.
Your code will check if the int passed is equal to zero.
However, this is not a decimal int, but rather, an octal int. 0_12 does not equal 12 or 1_2. Instead, the former is equal to 10 in decimal.
1 Binary literals were added in Java 1.7.