不积跬步,无以至千里;不积小流,无以成江海。

2017年10月28日的内容

JAVA

JDK8 十大新特性

JDK8 十大新特性
一、接口的默认方法 在接口中新增了default方法和static方法,这两种方法可以有方法体 1、static方法 示例代码: public interface DefalutTest { static int a =5; default void defa...

9年前 (2017-10-28) 2136℃ 1评论 2喜欢