- 链接地址:https://blog.csdn.net/cdw8131197/article/details/68553148
- 链接标题:JAVA8 十大新特性详解_java8新特性-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:3480
文章浏览阅读4.5w次,点赞47次,收藏400次。一、接口的默认方法在接口中新增了default方法和static方法,这两种方法可以有方法体 1、static方法 示例代码:public interface DefalutTest { static int a =5; default void defaultMethod(){ System.out.println("DefalutTest defalut 方法_java8新特性
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:java8新特性