Java - Custom Exceptions
Which of the following is the correct way to declare a method that might throw an exception?
throws is used followed by the exception class name without parentheses.throws IOException. The other options have syntax errors.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions