public class Lambda_Test { public static void main(String[] args) { //匿名内部类 new Thread(new Runnable() { @Override public void run() { System.out.println("创建线程By__匿名内部类"); } }).start(); //Lambda表达式 new Thread(()->{ System.out.println("创建线程By__Lambda表达式"); }).start(); } }