How can custom exceptions be created in Java?
class MyException extends Exception { }
By extending the Error class
By implementing the Throwable interface
By extending the Exception class
By using annotations