Java 7 platform Standard Edition (official) Chinese Version

Source: Internet
Author: User

Java 7 new feature set (Chinese Version)

Java 7 platform Standard Edition documentation

Oracle has two products to implement Java platform Standard Edition (Java SE) 7: Java SE Development Kit (JDK), 7 and Java SE Runtime Environment (JRE) 7.

A superset of JRE 7 in JDK 7, including everything in JRE 7, plus tools such as compilers and debuggers necessary for developing applets and applications. Jre7 provides class libraries, Java Virtual Machine (JVM), and other components required to run applets and applications written in the Java programming language.



The following concept diagram illustrates the Java component technology:

Document "new"

This document is regularly updated to provide developers with an in-depth understanding of new features on the Java platform. Some recent updates include:

1. Swing

Includes the following topics:

The new components in the jlayerclass swing package can be customized.

The newest U component in the nimbuslook & feel swing package supports Custom Skin

The latest attributes in the heavyweightand lightweight components swing package enable transparent and translucent forms

Shapedand translucent is the latest component in the Windows swing package to implement custom shape forms.


Hue-saturation-luminance (HSL) color selectionin jcolorchooser class color selector, which supports color saturation and brightness

Image 1 nimbuslook & feel

Image 2 translucentwindow

Image 3 gradientwindow

Image 4 shapedwindow

Image 6 internalframemixingfixed

 

2. Java SE 7 network Enhancement

The urlclassloader. Close method has been added. This method effectively eliminates the problem of how to support the implementation of classes and resource updates from a specific code library, especially the jar files. For more information, see combine as urlclassloader.

Socket direct protocol (SDP) provides high-performance network connections. For details about socket direct protocol in Java tutorial, see.

3. javase 7 enhancements in collections framework

You have added the transferqueue interface, which is a complete blockingqueue interface. Implements the transferqueue interface.

4. Client JRE performance-Quick Reference

Java's rich Internet application (RIA) technology is becoming increasingly mature. New features in each Java Runtime Environment (JRE) software version are added. This Quick Reference helps you keep up with dynamic technologies and implementations working in all versions of client JRE software with elegant Ria solutions. Quick Reference provides information about the important features added to the beginning of the release of each version of JRE software and Java SE 6 Update 10.

The window-dragged applet can be decorated with a default or custom title. You can see the decoration of the request and custom drag-able applet. The following enhancements are syntaxes for JNLP files; JNLP File Syntax: (1) OS elements can now contain specific versions of Windows, such as Windows Vista or Windows 7, in information and resource attributes. (2) Applications can use the installation properties in the shortcut element to specify the desire to install them. When the javaweb Start cache of the installed application is cleared, it can be deleted explicitly using the Java Control Panel. (3) the Java Web Start application can be deployed without specifying the codebase attribute; The JNLP file deployed without a code library can be embedded into an HTML page;
Embed the applet tag in the JNLP file.

You can check the applet status variable, which is loaded to determine whether the applet is ready to process requests from JavaScript code; processing and initialization status of the event handler.

The decoration style of your current control window, and start the title of an applet from the shortcut, or drag the browser; you can see the decoration of the drag-and-drop applet for request and custom development.

5. Java XML technology enhancements

Java API included in this version, used for XML Processing (JAXP) 1.4.5 supports the 2.2.3 architecture of Java for XML binding (jaxb), and supports XML Web Services of Java APIs (Jax-ws) 2.2.4.

6.
Java. lang Package

Potential deadlocks and multithreading. non-hierarchical delegated custom class loaders are eliminated. For details, see the custom class loaders of multithreading in Java SE 7.

7. Java Virtual Machine

A non-Java VM supports a new JVM instruction introduced in Java se7, which simplifies the Implementation of Dynamic Programming Languages on JVM.

The garbage collector is a server-type Garbage Collector that replaces the concurrent mark-clear collection (CMS.

Java hotspot virtual machine performance enhancement

8.
Java I/O

Java. NIO. file package and its related packages, Java. NIO. file. attribute to provide file I/O and comprehensive support for accessing the file system; view the file I/O (featured by nio.2 ). NIO represents non-blocking I/O. (1) The <Java Home>/sample/NiO/chatserver/inclusion example shows that the java. NiO. File package contains new APIs. (2) Example of the <Java Home>/demo/NiO/zipfs/nfs (Network File System) File System Containing nio.2 in the directory.

9.
Security

9.1A new local vendor has provided several ECC-based algorithms (ECDSA/ecdh). See the PKCS #11 Reference Guide for Sun's support algorithms in Java.

9.2Weak encryption algorithms can now be disabled. See Appendix D: Java programmer guide for disabling PKI for encryption algorithms and disable encryption algorithms (disabled cryptographic algorithms) in Java Secure Socket extensions (JSSE). SSL/TLS Problems

9.3The various enhancement feature has been added to Java Secure Socket Extension.

10.
Concurrency

The fork/join framework is based on an implementation of the forkjoinpool class and executor interface. It is designed to effectively run a task that uses a large number of worker thread pools. One "Job theft technology" is used to keep all busy working threads and make full use of multiple processors. View the fork/join Java tutorial. Directory <Java Home>/sample/forkjoin/contains samples. The fork/join framework is demonstrated.

The threadlocalrandom class does not need to compete between threads that use pseudo-random numbers. For details, see concurrent random numbers.

The phaser class is a new obstacle to synchronization, similar to javasicbarrier.

11.
Java 2D

The new xrender-Java-based 2D rendering pipeline supports modern X11-based desktops, providing graphic performance, and the Java 2D technology xrender flag seen in system properties.

The current JDK lists and displays the methods used, such as the OpenType/CFF fonts installed by graphicsenvironment. getavailablefontfamilynames. These fonts can also be recognized by the font. createfont method. See select font index.

Textlayout class supports Tibetan.

Libfontconfig, font configuration API, used to select fonts, using some of the logical fonts implemented by Linux; see fontconfig index.

12.
Internationalization

Unicode 6.0.0 is supported. For more information, see Unicode in the Java tutorial. The <Java Home>/demo/jfc/font2dtest/directory contains an example that demonstrates Java Unicode 6.0 support.

Java SE 7 can accommodate its iso4217 code to determine the new currency. For details, see the currency class.

13.
Java programming language

The following enhancements have been added to the Java language:

1. Binary type.

2. Use an underscore in the numeric class.

3. Use a string in the switch statement.

4. type inference for generic instances.

5. Enable the compiler to warn and report errors when a mutable method is used for a generic non-materialized type.

6. Try-with-resources exception handling.

6. capture multiple exception types and re-throw improved detection exceptions.

14.
The JDBC 4.1

Jdbc4.1 introduces the following features:

Added the ability to use a try-with-resources statement to automatically disable connection, resultset, and andstatement resources. For details, see processingsql.
The closingconnections index under statements.

1.1 of rowset: Introduced rowsetfactory interface and rowsetprovider class, which enables you to create all types of row sets through the JDBC driver. For details, see using in usingjdbcrowset objects.
Therowsetfactory interface.

Related Article

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.