Java Division int от 0

assertThrows(ArithmeticException.class, () -> {
    int result = 12 / 0;
});
Yellowed Yak