New features in JDK1.7 and JDK1.8 [Need to update continually]
2014-11-19 16:01
686 查看
JDK version | Features |
JDK1.7 | 1, Access file system, java.nio.file.Path, File <=> Path 2, AIO 3, try with resource, resource must implements java.lang.AutoCloseable 4, switch supports String type 5, try catch, catch multi Exceptions 6, Enhance JAXB and JAXP 7, Support JDBC4.0 and JDBC4.1 |
JDK1.8 | 1, Interface, we can use default keyword to set a default implementation in interface 2, Interface, static keyword, interface can hold some static functions, which has function body, invoke these functions: InterfaceName.funName() 3, @FunctionalInterface, a interface has only one abstract function(except Object's functions), which can be used in Lambda expression E.g. Runnable, Comparator, ... 4, Use :: to get reference of static method, non-static method and constructor method, which can be used in Lambda expression 5, Annotation, @Repeatable, it is used to indicate a custome interface is repeatable. |
相关文章推荐
- Web Tier to Go With Java EE 5: Summary of New Features in JavaServer Faces 1.2 Technology
- Web Tier to Go With Java EE 5: Summary of New Features in Java Standard Tag Library (JSTL) 1.2
- Some knowledge about why we need to new and delete everything in one module
- New Features and Enhancements in J2SE 5.0(jdk 1.5)
- New replication features in SQL Server 2008 and what they mean to you
- Delphi in a Unicode World Part II: New RTL Features and Classes to Support Unicode
- 【转】Update plug-in ant from 1.7 to 1.8
- Cannot use the diamond generic notation when running in JDK inferior to 1.7 mode
- Update plug-in ant from 1.7 to 1.8
- Web Tier to Go With Java EE 5: Summary of New Features in JSP 2.1 Technology
- 55 New Features in JDK 7 - NIO2
- How to combine the features in the DefaultSelection
- add scroolbar to dialog is easy,add flag in dialgon property , then 4 func are need to change or add.
- 在ArcGlobe中如何聚焦到选择的图元(How to zoom to selected features in globe)
- First Look: New Security Features in Windows Vista
- The first book you need to follow up in learning Biztalk 2006
- Programming Basic--why we need to add ' extern "C" ' in C++ program when calling the function which is complied by C complier?
- Confige to auto-update from loacl with new Kaspersky Virus Library
- [Tips] How to Add New field into Shapefile attribute table in ArcGIS ?
- Here's an example that shows how to enumerate through the features of a selection set, returning the value of each field in the attribute table except for the geometry colum.