Java - Exception Handling
Which of the following is the correct way to throw a NullPointerException with a custom message in Java?
Which of the following is the correct way to throw a NullPointerException with a custom message in Java?
throw new ExceptionType("message") to throw an exception with a message.NullPointerException object with a message and throws it.new keyword and parentheses [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions