After two and a half years of efforts, repeated delays, and nine milestone versions, Oracle's Java Development team finally released the Java 8 official version.
The biggest improvement of Java 8 is Lambda expressions.The purpose is to make Java easier to write code for multi-core processors. Secondly, the newly added Nashorn engine also enables Java programs to interwork with JavaScript code. Furthermore, the new date-time API, GC improvement, and concurrency improvement are also quite promising.
In addition, the Jigsaw project to be added to Java 8 (standard module system) was postponed to Java 9 due to the development time, but Java 8 is already working in this direction.
All new features and improvements of Java 8 include ):
Language Improvement:
- JEP 126: Lambda expressions & virtual extension methods
- JEP 138: Build a system based on Autoconf
- JEP 160: Lambda representation of Method Handles
- JEP 161: simple configuration file
- JEP 162: Prepare for modularization
- JEP 164: Use CPU commands to improve AES encryption performance
- JEP 174: Nashorn engine, allowing JavaScript code to be embedded in Java programs
- JEP 176: Automatic Detection and Recognition Caller-Sensitive Method
- JEP 179: jdk api change and stability record
Basic VM improvement:
- JEP 142: reduces cache contention for specified fields
Improvement on VM garbage collection (vm/gc:
- JEP 122: remove Permanent Generation (Permanent Generation)
- JEP 173: removes some rarely used garbage collector combinations
Improvements in VM Runtime (vm/rt:
- JEP 136: provides more verification error messages
- JEP 147: reduces metadata Encapsulation
- JEP 148: supports creating small virtual machines (less than 3 m)
- JEP 171: add three in-memory sequential inline functions
Core improvement:
- JEP 153: run the command line to start the JavaFX application.
Core lang (core/lang) improvement:
- JEP 101: Target type inference
- JEP 104: Java type Annotation
- JEP 105: DocTree API
- JEP 106: Add Javadoc in javax. tools
- JEP 117: Remove APT (Annotation-Processing Tool)
- JEP 118: accessible parameter name during running
- JEP 120: Repeated annotations
- JEP 139: enhanced javac to improve build speed
- JEP 172: DocLint tool used to check Javadoc comments
Core/libs improvements:
- JEP 103: Parallel Array sorting
- JEP 107: batch operation of Set Data
- JEP 109: enhanced core library containing Lambda
- JEP 112: improved character set implementation
- JEP 119: javax. lang. model implementation provided by Core Reflection
- JEP 135: Base64 encoding/Decoding
- JEP 149: reduces memory usage in the core library
- JEP 150: Date and Time API
- JEP 155: improved support for concurrency
- JEP 170: JDBC 4.2
- JEP 177: java. text. DecimalFormat. format Optimization
- JEP 178: static link JNI Library
- JEP 180: uses a Balance Tree to handle frequent HashMap collisions
Core i18n (core/i18n) improvement:
- JEP 127: improved local data encapsulation using Unicode CLDR data
- JEP 128: BCP 47 local match
- JEP 133: Unicode 6.2
Core net (core/net) improvement:
- JEP 184: http url access permission
Core/sec improvements:
- JEP 113: MS-SFU Kerberos 5 Extension
- JEP 114: TLS Server Name Indication (SNI) Extension
- JEP 115: AEAD cipher suite
- JEP 121: stronger password encryption system algorithm
- JEP 123: configurable Security Random Number Generation Method
- JEP 124: enhanced certificate recall detection API
- JEP 129: NSA Suite B Encryption Algorithm Implementation
- JEP 130: SHA-224 message digest algorithm implementation
- JEP 131: The 64-bit Windows SunPKCS11 encryption provider
- JEP 140: privilege Restriction
- JEP 166: thoroughly overhaul the JKS-JCEKS-PKCS12 keystore
Web/jaxp improvements:
- JEP 185: JAXP 1.5 (restrict access to external resources)
Details: Http://openjdk.java.net/projects/jdk8/features
Download JDK 8: Http://www.oracle.com/technetwork/java/javase/downloads/index.html
The official version of NetBeans IDE 8.0 is also released.For features of the new version, see the new features of NetBeans IDE 8.0.