当前位置:Gxlcms > 数据库问题 > java-lamdba认知

java-lamdba认知

时间:2021-07-01 10:21:17 帮助过:40人阅读

1.实现Runnable

new Thread(() -> System.out.println(11)).start();

2.匿名内部类处理方式

public static void main(String[] args) {
   ww(() -> System.out.println("111"));
}
interface MM{
   void aa();
}
public static void ww(MM mm){
   mm.aa();
}

3.

java-lamdba认知

标签:匿名内部类   ati   stat   inter   sys   pre   start   new t   read   

人气教程排行