Woah, wait a minute! What if the MyException constructor throws an exception? Then we might get a compile-time error. I better double-check the code before answering.
Hmm, this looks like an interesting exception handling scenario. Let's see, the MyException class is extending RuntimeException, so it should be unchecked. The Test class is throwing a new instance of MyException, so I think the answer is either A or B.
Kimbery
3 days agoVeta
4 days agoFelton
16 days agoMarcelle
18 days agoFlorinda
23 days ago