Paip. jdk1.4 1.5 (5.0) 1.6 (6.0) 7.0 8.0 comparison of features and differences

Source: Internet
Author: User
Tags tools and utilities ssl certificate

Paip. jdk1.4 1.5 (5.0) 1.6 (6.0) 7.0 8.0 comparison of features and differences

Author attilax, email: 1466519819@qq.com
Source: attilax Column
Address: http://blog.csdn.net/attilax

 

Jdk1.4
------------
1. One of the introduced features is assert, which provides strong support for program debugging.
2. Add XML Processing
3. The new I/O (NIO) APIs provides new features and improved performance in the buffer processing, character set support, file I/O, and scalable network I/O fields.
4. Rule expression matching
Security
Java 2dtm Technology
Graph I/O structure
Java Printing Service
AWT
Swing
Drag and Drop
Fault Record API
Javatm Web Start Product
Long-term continuous javanstm Components
Jdbctm 3.0 API
Assertion Tool
Parameter Selection API
Java Virtual Machine
Performance
Including IPv6 network support
RMI
Serializing
Java Naming and Directory Interface TM (JNDI)
CORBA, Java IDL, and RMI-IIOP
Javatm debugger Structure Product
Internationalization
Javatm plug-in Product
Set Structure
Ease of use
Rule expression
Math
Reflection
Java local Interface
Tools
Tools and utilities

Jdk1.5 jdk5
------------------
1. Generic

2. Automatic packing/unpacking

3 For-each
4 static Import
5. Variable Length Parameter
6. jdk1.5 adds a new keyword enmu, so we can define an enumeration type.

 

Jdk1.6 jdk6.0
----------------
In jdk1.6, AWT adds two classes: desktop and systemtray.
Ii. Use jaxb2 to map objects to XML
3. Stax (JSR 173) is an API for processing XML documents in addition to Dom and sax in jdk1.6.0.
4. Use compiler API

Now we can use jdk1.6 'S Compiler API (JSR 199) to dynamically compile Java source files. With the reflection function, compiler API can dynamically generate and compile and execute Java code, A bit of Dynamic Language features.

5. Lightweight HTTP Server API
6. Plug-In annotation processing API (Pluggable annotation processing API)

The plug-in Annotation processing API (JSR 269) provides a set of standard APIs to process annotations (JSR 175)
7. Use the console to develop console programs

8. Support for Scripting

Such as Ruby, groovy, and JavaScript.

9: Common annotations

 

Jdk1.7 jdk7.0
---------------
1. Enhanced support for Java collections
2. String is available in the switch.
3. The value can be underlined.
Example: int one_million = 0000000_000;

 

4. Support for binary text

Example: int binary = 0b1001_1001;

 

5. simplified the call of Variable Parameter Methods

When a programmer tries to use an materialized Variable Parameter and calls a * varargs * (variable) method, the editor generates a "unsafe operation" Warning.

 

6. Automatic Resource Management

 

Jdk8.0
-------------------
1. Streams

The improvement of collections is also a highlight of Java 8, and the core component that makes the collection better and better is stream ". It is completely different from inputstream and outputstream in Java. Io.
2. Lambda projects, streams, and functional interfaces
3. Java time API

Time has been in Java for a long time. The java. util. Date package first appears, followed by Java. SQL. Date and calendar. However, processing time and date requires a lot of monkey code. Therefore, third-party libraries such as joda time

So it was born. So late, Oracle finally decided to add a java. Time package in Java to clean up various time interfaces. It seems to be consistent with the appetite of current developers and has a variety of time APIs.

4. nashorn

Nashorn is the successor of rhino. The purpose of this project is to implement a lightweight and high-performance JavaScript Runtime Environment Based on Java.

Invokedynamic is added to JDK 7. It is mainly used to support non-Java languages, especially dynamic languages. Nashorn in JDK 8 will provide developers with a more practical JavaScript implementation. In fact, Oracle already has

Your own node. js implementation is called node. jar. This seems more attractive than running JavaScript in Java.

5. multi-thread lock of Accumulators
The Java. util. Concurrent package makes the thread pool and other relatively complex multi-threaded structures better.

6. TLS SNI
I may not be able to share IP addresses because of SSL. Because the HTTP Host header is built on a named virtual host and the host relies on SSL for encryption/decryption, you have to apply for different IP addresses for each SSL certificate.

In recent years, SNI has been used to solve this problem, and Java is no exception.

 

Refer:
New Features of jdk1_4 I-O APIs _ Java _ China Network Management Alliance bitscn_com.mht
Summary of new features and enhancements of jdk_1_4-snakqi's column-blog channel-csdn_net.mht
Differences between jdk1_4, jdk1_5, and jdk1_6
New Features of jdk00005 compared to jdk1_4-lin Junlong personal page-Open Source Chinese community. MHT
Nine new features of jdk1.6
Differences between jdk1_4 and jdk00005 & nine new features of jdk00006 _ Baidu Library. MHT
New Features of JDK 7-log of ch-Netease blog. MHT
No silver bullet: explore the advantages and disadvantages of New Java 8 features-csdn_net.mht

 

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.