Reputation: 700
I am so surprised that this code compiles, but what does it mean ?
public interface IBar {}
public interface IFoo implements IBar {}
Upvotes: 2
Views: 816
Reputation: 5267
It can't be compiled because interface can't implement
the other interface but can extends
it:
public interface IFoo extends IBar {}
Your code must leads to error:
1084: Syntax error: expecting leftbrace before implements.
Upvotes: 4