Can someone explain this to me?
package pl.codegym.task.task09.task0919;
/*
Dzielenie przez zero
*/
public class Solution {
public static void dzielimyPrzezZero (int a) throws ArithmeticException{
System.out.println(a/0);
}
public static void main(String[] args) {
try {
dzielimyPrzezZero(6);
}
catch (ArithmeticException e){
e.printStackTrace();
}
}
}