Solved

Melanie Writes Some Code with the Public Class EmailChecker

Question 15

Multiple Choice

Melanie writes some code with the public class EmailChecker. She uses try and catch blocks to catch thrown exceptions. A user enters this email address: Javalovre@sw.com. Which of the following is a likely outcome?


A) The program will catch the misspelling of "lover" and throw an IllegalEmailException.
B) The program will continue executing inside the try block.
C) The attempt to instantiate an object of the Exception class will generate a compiler error.
D) Any of the these would be a likely outcome.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions