a)Necessarily be an abstract class.
b)Should have the method public abstract void someMethod();
c)Should have the method public void someMethod() which has to throw an exception which is a subclass of java.lang.Exception.
d)Should have the method public void someMethod() which need not throw an Exception.
Public interface ABC {public abstract void someMethod() throws Exception;}A Class implementing this interface?
I think it should be d
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment