Java - Custom Exceptions
Which of the following is the correct syntax to throw a custom exception named
MyException?MyException?throw followed by new and the exception class constructor.throw new MyException();15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions