JAVAJDK8 十大新特性 一、接口的默认方法 在接口中新增了default方法和static方法,这两种方法可以有方法体 1、static方法 示例代码: public interface DefalutTest { static int a =5; default void defa... 9年前 (2017-10-28) 2136℃ 1评论 2喜欢