I've refactored some methods to an interface and they were left with abstract
modifier in the interface declaration. Something like this was in my code:
public interface TestAbstractMethod {
public abstract void doSomething();
}
I noticed it accidentally now and I was actually surprised that the declaration wasn't marked as invalid, that it actually compiles and works.
Is abstract
modifier allowed in an interface for a reason? Does this alter the interface's behavior in any way?