Exception cannot be converted to Throwable
问题 I'm working on macOS with JDK8. In catch, I have to give the entire name of exception like in this case (ArithmeticException e) instead of (Exception e) to run the code. If I use (Exception e) it gives an error that I'm not getting on windows os. why is that?? and how should I solve this?? The code works perfectly on windows OS with JDK8. On macOS work perfectly if the proper name of the exception (ArithmeticException e) is given. import java.util.*; public class ExceptionDemo { public static