Possible Duplicate:
Java abstract interface
public interface Foo {
abstract public void bar();
}
I guess we don’t need to declare abstract as well as public in the above interface. Will the compiler catch this is as a warning or is it allowed by the compiler.
You don’t have to, every interface method is implicitly
abstract. It will not be a mistake to write it though.