J2SE Evolution 博客分类: Java Foundation javaj2senew-featuresjava7java8
程序员文章站
2024-03-09 14:54:23
...
Java 7 New Features
Java SE 7 Features and Enhancements:
http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html
A look at Java 7's new features:
http://radar.oreilly.com/2011/09/java7-features.html
Concurrency Utilities Enhancements & Fork/Join:
http://docs.oracle.com/javase/tutorial/essential/concurrency/forkjoin.html
Strings in switch Statements:
http://docs.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html
引用
String.equals 作为比较的依据,并且字符串是大小写敏感的
Objects 工具类,使用举例如下:
Objects.requireNonNull(someObject); someObject.doCalc();
Generics 声明时使用 Diamond Operator <>:
http://docs.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html
before:
Map<String, List<String>> anagrams = new HashMap<String, List<String>>();now:
Map<String, List<String>> anagrams = new HashMap<>();
Underscores in Numeric Literals:
http://docs.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html
Binary Literals 二进制整数:
http://docs.oracle.com/javase/7/docs/technotes/guides/language/binary-literals.html
Underscores in Numeric Literals & Binary Literals 可参见本:
http://wuaner.iteye.com/admin/blogs/1668172
Java 8 New Features
http://www.oracle.com/technetwork/java/javase/8-whats-new-2157071.html
推荐阅读
-
J2SE Evolution 博客分类: Java Foundation javaj2senew-featuresjava7java8
-
Java object Initialization (class Instantiation) | 对象的初始化(即类的实例化) 博客分类: Java Foundation javaobject InitializationClass Instantiation对象的初始化类的实例化
-
未完 Java Collections | 容器 博客分类: Java Foundation java容器collection
-
未完 java设计: naming convention | 命名规范 博客分类: Java Foundation设计模式 java设计naming convention命名规范
-
未完 Java: enum 枚举 博客分类: Java Foundation enum枚举
-
未完 Java Socket 博客分类: Java Foundation JavaSocket
-
java中Byte数组与图片的转换 博客分类: j2se imagebufferedimagebytearrayoutputstreambytearrayinputstream
-
Java IO 博客分类: j2se JavaOSF#多线程Swing
-
JAVA时间日期处理函数 博客分类: j2se JavaSQL
-
JAVA时间日期处理函数 博客分类: j2se JavaSQL