I am looking into some exception one method is throwing. The method looks like this:
public void someMethod() throws someCheckedException{
//doSomething statements
//but no statements actually throws 'someCheckedException'
}
My question is that is it possible to make this method throw 'someCheckedException' while the implementation does not have a throw statement at all.
Is it wrong to put throw exception in signature without implement a statement throwing exceptions?