中新增了更多的静态方法来创建不同类型的方法句柄 其它新特性 接口私有方法 :Java 9 允许在接口中使用私有方法 try-with-resources 增强 :在 try-with-resources 语句中可以使用 effectively-final 变量(什么是 effectively-final 变量,见这篇文章 http://ilkinulas.github.io/programming/java/2016/03/27/effectively-final-java.html
private void methodPrivate(){ } } Java9 其它新特性 try-with-resources 增强 :在 try-with-resources 语句中可以使用 effectively-final 变量(什么是 effectively-final 变量,见这篇文章:《Effectively Final Variables in Java》 类 CompletableFuture 中增加了几个新的方法