The words in the options 3) and 4) can throw people off (pun intended
). Based on the Interface definition we know that someMethod() will have to be implemented. However, that method doesn't necessarily have to throw an Exception, it could choose not to throw one. By declaring a method
throws an Exception we are telling the
Java compiler to be aware of the situation and if exception is indeed thrown then it needs to look for a suitable Exception handler for the type of Exception thrown.
Does this help?
Cheers,
TR.