Consider the following Java class definitions.
public class CustomException extends Exception {
public CustomException(String message) {
super(message);
}
public CustomException(String message, Throwable cause) {
super(message, cause);
}
}public class Main {
public static void main(String[] args) {
try {
throw new CustomException("This is a custom exception!");
} catch (CustomException e) {
e.printStackTrace();
}
}
}What statements are true about custom exceptions in Java?