Java - Exception Handling
What will be the output of the following code?
public class TestThrow {
public static void main(String[] args) {
try {
throw new ArithmeticException("Error");
} catch (ArithmeticException e) {
System.out.println("Caught: " + e.getMessage());
}
}
}