int 0-1 value java code example Example: java int 0/0 assertThrows(ArithmeticException.class, () -> { int result = 0 / 0; });