Java 9 Interface vs Class

前端 未结 5 1009
春和景丽
春和景丽 2020-12-08 02:11

As Java 9 is going to allow us to define private and private static methods too in interfaces, what would be the remaining difference in inte

5条回答
  •  眼角桃花
    2020-12-08 02:38

    Java 9 interfaces still cannot contain fields and constructors. This makes a huge difference between classes and interfaces, so Java 9 is far from multiple inheritance.

提交回复
热议问题