Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很惊讶这段代码可以编译,但这是什么意思?
public interface IBar {} public interface IFoo implements IBar {}
它无法编译,因为接口不能implement其他接口但可以extends:
implement
extends
public interface IFoo extends IBar {}
您的代码必须导致错误:
1084:语法错误:在实现之前需要左大括号。