New features for each version of Java

Source: Internet
Author: User
Tags time and date http 2

Original link: http://blog.csdn.net/shareus/article/details/50736159

1.5
1. Automatic Boxing and unpacking:
2. Enumeration (commonly used to design singleton patterns) http://www.jb51.net/article /78351.htm
3. Static import
4. Variable parameters
5. Introspection

1.6
1.Web Service Metadata
2. Scripting language support
3.JTable sorting and Filtering
4. Simpler, More powerful JAX-WS
5. Lightweight HTTP Server
6. Embedded database Derby

1.7
1,switch You can use the string in
2. Using list<string> Templist = new arraylist<> (); That is, the generic instantiation type automatically infers
3. A collection is syntactically supported, not necessarily an array
4. New tool methods for environment information
5.Boolean type reversal, NULL pointer security, participating bit Operation
6. Two equals  between Char
7. Secure subtraction  
8.map Collection supports concurrent requests and can be written as map map = {name: "xxx", age:18};

1.8
1. Allow the default method in the interface to implement
2. Lambda expression
3. Function Interface
4. Method and constructor reference
5. Scope of the Lambda
6. Built-in function interface
7. Streams
8. Parallel Streams
9. Map
10. Time and Date API
11. Annotations

1.9
1. Jigsaw project; Modular source code
2. Simplification of the process api 
3. Lightweight JSON api 
4. Api  of money and money;
5. Improve lock contention mechanism
6. Code fragment caching
7. Smart Java compilation, second stage
8. HTTP 2.0 Client
9. Kulla plan: Java's REPL implementation

14 new features in Java 9 summary-http://geek.csdn.net/news/detail/196632

New features for each version of Java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.