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