Current location - Quotes Website - Signature design - What are the new features of java se8
What are the new features of java se8

The new features of java se8 are as follows:

Java Programming Language

1. Lambda expressions, a new language feature, which can use functions as parameters of methods or Code as data, which allows you to express instances of single-method interfaces more concisely.

2. Provide a more readable lambda expression as a method reference for methods that already have method names.

3. The default method enables new functionality to be added to the library's interface, ensuring binary compatibility with code written for older versions of the interface

4. Repeated annotations provide the same application more than once Annotation types

5. Type annotations provide the ability to apply annotations. The use of any type is not only used in declarations. For use in a pluggable system, this feature improves type checking of your code.

6. Improve type inference

7. Reflection of method parameters

Collections

1. New java.util.stream Package that provides the stream API to support functional operations on stream elements. The stream API is integrated into the collections API to use batch operations such as serial or parallel map-reduce transformations.

2. Use key collisions to improve the performance of HashMap

compact profiles

Contains a predefined subset of the Java SE platform and eliminates the need for the entire platform to be deployed and Applications running on small devices

security

1. The client enables TLS1.2 by default

2. New AccessController.doPrivileged, assert it with code A subset of privileges that does not prevent other permissions from being checked during full stack traversal

3. Stronger password-based encryption algorithm

4. SSL/TLS SNI extension in JSSE server Support

5. Support AEAD algorithm: SunJCE provides enhanced support for AES/GCM/nopadding cipher implementation and GCM algorithm parameters, SunJSSE provides enhanced AEAD mode based on cipher suites

6. Keystore enhancement, including new keystore type java.security.DomainLoadStoreParameter, and new command line option -importpassword

7. SHA-224 Message Digests

8. NSA Suite B encryption support

9. Better support for High Entropy random number generation

10. The new java.security.cert.PKIXRevocationChecker class is configured to revoke X.509 certificates

11. 64-bit PKCS11 under win

12. New rcache type in Kerberos 5 Replay Caching

13. Support Kerberos 5 protocol conversion and constraint proxy

14. Kerberos 5 weak encryption is disabled by default

15. Unbound SASL is GSS-API/Kerberos 5 mechanism

16. SASL service under multiple host names

17. JNI bridge to native JGSS on Mac OS Cipher suite personalization settings

JavaFX

1. New Modena theme implementation

2. New SwingNode class allows developers to nest Swing content into javaFX applications

p>

3. New UI Controls include DatePicker and TreeTableView

4. The javafx.print package provides a public printing API for JavaFX

5. Three-dimensional graphics features, currently Contains 3D shapes, cameras, lights, subscene, material, picking and antialiasing

6. New functions and improvements provided by the WebView class, supporting more features about HTML5, Web Scokets, Web Workers and Web Fonts< /p>

7. Enhance text support

8. Support Hi-DPI display

9. CSS style class becomes public API

< p> 10. The new ScheduledService class allows automatic service restart

11. JavaFX is available on the ARM platform

tools

1. The jjs command calls the Nashorn engine

2. The java command allows JavaFX applications

3. The java man page has been updated

4. The jdeps command line tool provides analysis files

5 , Java Management Extensions (JMX) provides remote diagnostic commands

6. The jarsiger tool is optional and extracts time from the TSA request signature

7. javac tool

7.1 , -parameters option stores the formal parameter name and the reflection API retrieves the formal parameter name

7.2. The type rules of JLS 15.21 equality operations are correctly executed through the javac command

7.3. The javac tool is now Supports checking the content of javadoc comments. This feature is passed through the -Xdoclint option

7.4. The javac tool now provides the ability to generate native headers. Remove the javah tool and use it through the -h option of javac

8. javadoc tool

8.1. The javadoc tool supports the new DocTree API

8.2. The javadoc tool supports The new javadoc access API allows java applications to directly call the javadoc tool without executing a new process

8.3. The javadoc tool now supports checking the content of javadoc comments. This feature is passed through the -Xdoclint option

< p>Internationalization

1. Unicode enhancement, support unicode6.2.0

2. Use unicode CLDR data and java.locale.providers system properties

3. New Calendar and Locale APIs

4. The ability to install a custom resource package as an extension

Deployment

1. For sandbox applet and java web start For apps, URLPermission is now used to allow connections to servers from when they are launched. SocketPermission is no longer authorized

2. At all security levels, the permission attribute must be given in the manifest of the jar file of the main jar file

Date-Time Package

A new software package that provides a more comprehensive date-time model

Scripting

Nashorn js engine

Pack200

1. Pack200 supports constant pool entries and new bytecode introduced by JSR 292

2. JDK8 supports changes in class files specified by JSR-292, JSR-308 and JSR-335

IO and NIO

1. Implement a new SelectorProvider in the Solaris event port mechanism based on Solaris. Use the value sun.nio.ch.EventPortSelectorProvder set by the system property java.nio.channels.spi.Selector to run

2. Reduce the number in the /jre/lib/charsets.jar file

3. Improve the performance of java.lang.String(byte[], *) constructor and java.lang.String.getBytes() method

java.lang and java.util.Pack ages

1. Concurrent array sorting

2. Standard encoding and decoding Base64

3. Support for unsigned operations

JDBC

1. Remove the JDBC-ODBC bridge

2. JDBC4.2 introduces new features

Java DB

1. JDK8 includes Java DB 10.10

Networking

1. Add the java.net.URLPermission class

2. In java.net.HttpURLConnection, if security management is installed , the request requires permission to open a connection request

Concurrency

1. Add new classes and interfaces to the java.util.concurrent package

2. java. The util.concurrent.ConcurrentHashMap class adds methods to support aggregation operations, based on new stream facilities and lambda expressions

3. Add classes to the java.util.concurrent.atomic package to support expandable and updateable variables

4. Added methods to the java.util.concurrent.ForkJoinPool class to support universal pools

5. The java.util.concurrent.locks.StampedLock class has been added to control read/write access using 3 modes Capability-based locks

Java XML – JAXP

HotSpot

1. Hardware features added AES, UseAES and UseAESIntrinsics tags are available when opening hardware-based AES ( Inter hardware), the hardware must be 2010 or newer Westmere hardware, such as: to turn on hardware AES, use the following tags

-XX:+UseAES -XX:+UseAESIntrinsics

to turn off hardware AES:

-XX:-UseAES -XX:-UseAESIntrinsics

2. Remove PermGen

3. Support default methods by introducing bytecode instructions for method calls