JDK 1.7

本文概述了 Java 7 中引入的一些关键特性,包括闭包(Closures)、Java 模块系统(JSR277)、改进的模块化支持(JSR294)、Beans Binding(JSR295)等。还提到了诸如 JSR303 的 Beans Validation 和 JSR203 的 NIO2 等其他重要更新。
摘要由CSDN通过智能技术生成

 http://www.javabeat.net/javabeat/java7/

  • Closures

    Closures are something like C callbacks, a pointer to a function that you can pass as a parameter. In addition to the method, some context around that method is snapshotted to go along with it in the closure.

    <script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script> <script type="text/javascript"> </script>

    Another way of putting it is a closure is an anonymous function body, that can be declared and passed around as a first-class object, and which can refer to variables from its enclosing scope. The anonymous classes in JDK 1.1 provide closure-like facilities, albeit with tacky syntax. Smalltalk "blocks" are closures.

  • JSR 277 Java Module System
  • JSR 294 Improved Modularity Support
  • JSR 295 Beans Binding
  • JSR 303 Beans Validation
  • JSR 296 Swing Application Framework
  • JSR 203 NIO2JSR 220 Java Persistence APIs
  • JSR 255 JMX 2.0
  • JSR 262 Web Services Connector for JMX
  • JSR 260 Javadoc Technology Update
  • JSR 275 Units and Quantities
  • JSR 310 Date and Time API
  • JSR 308 Annotations on Java Types
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值