J2SE Evolution

[color=red][size=xx-large][b][align=center] Java 7 New Features[/align][/b][/size][/color]
[b]Java SE 7 Features and Enhancements:
[url]http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html[/url]
A look at Java 7's new features:
[url]http://radar.oreilly.com/2011/09/java7-features.html[/url][/b]


Concurrency Utilities Enhancements & Fork/Join:
[url]http://docs.oracle.com/javase/tutorial/essential/concurrency/forkjoin.html[/url]


Strings in switch Statements:
[url]http://docs.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html[/url][quote]String.equals 作为比较的依据,并且字符串是大小写敏感的[/quote]

Objects 工具类,使用举例如下:

Objects.requireNonNull(someObject);
someObject.doCalc();



Generics 声明时使用 Diamond Operator <>:
[url]http://docs.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html[/url]
before:
Map<String, List<String>> anagrams = new HashMap<String, List<String>>();
now:
Map<String, List<String>> anagrams = new HashMap<>();



Underscores in Numeric Literals:
[url]http://docs.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html[/url]
Binary Literals 二进制整数:
[url]http://docs.oracle.com/javase/7/docs/technotes/guides/language/binary-literals.html[/url]
Underscores in Numeric Literals & Binary Literals 可参见本:
[url]http://wuaner.iteye.com/admin/blogs/1668172[/url]


[color=red][size=xx-large][b][align=center] Java 8 New Features[/align][/b][/size][/color]

[url]http://www.oracle.com/technetwork/java/javase/8-whats-new-2157071.html[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值