Divisi Java int oleh 0

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