[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 工具类,使用举例如下:
Generics 声明时使用 Diamond Operator <>:
[url]http://docs.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html[/url]
before:
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]
[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]