Loading

摘要: Java8新特性 一、接口的默认方法 在接口中新增了default方法和static方法,这两种方法可以有方法体 1.1、static方法 接口中的static方法不能被继承,也不能被实现类调用,只能被自身调用 示例代码: static void staticMethod(){ System.out 阅读全文
posted @ 2020-07-22 21:42 shimeath 阅读(199) 评论(0) 推荐(0) 编辑