Reprinted from JDK 5 ~ 10 New Features
Recently, even JDK11 is on the way to be released. Do you all understand? Maybe most people are still using 6-8, and the new features of 8 are not familiar.
In order for you to have a comprehensive understanding of JDK, I have sorted out all the key new features of JDK5~10 for you below!
New features of JDK5
Autoboxing and unboxing
enumerate
static import
Variable parameters (Varargs)
introspector
Generic
For-Each loop
New features of JDK6
Desktop class and SystemTray class
Mapping between objects and XML using JAXB2
Understanding STAX
Using the Compiler API
Lightweight Http Server API
Plug-in annotation processing API
Use Console to develop console programs
Support for scripting languages
Common Annotations
Display of Java GUI interface
Embedded database Derby
Web service metadata
Sorting and filtering of Jtables
Simpler and more powerful JAX-WS
JDK7 new features
Strings can now be used in switch
Generic instantiation type automatic inference
Custom auto-close class
Added some tools and methods to read environmental information
Boolean type inversion, null pointer safety, participating in bit operations
equals between two chars
Safe addition, subtraction, multiplication and division | sd
Enhanced support for Java Collections
Values can be underlined
Support for binary numbers
In try/catch exception capture, a catch can write multiple exception types separated by |
It is not necessary to write a finally statement to close the resource, as long as you define the resource to be used inside the try() brackets
JDK8 new features
default method of interface
Lambda expressions
functional interface
Method and Constructor References
extends the collection class
New Date API
Annotation multiple annotations
streams
parallel streams
Map data structure improvements
New features of JDK9
Jigsaw Modular Project
Simplified process API
Lightweight JSON API
API for money and currency
Improve lock competition mechanism
Code segment cache
Smart java compilation
http2.0 client
kulla plan
New features of JDK10
Type inference for local variables
GC improvements and memory management
thread local handshake
Heap Allocation on Alternate Memory Devices
Other Unicode Languages - Markup Extensions
Java-based experimental JIT compiler
Open source root certificate
Root Certificate Issuing Certificate (CA)
Consolidate the JDK ecosystem into a single repository
remove tool javah
How, how much do you know about these new features? How much have you used? Learning more of these new features will be very helpful for the efficiency, force, skill growth, and employment of coding.