JDK 5 ~ 10 new features are sorted out

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


  1. Autoboxing and unboxing

  2. enumerate

  3. static import

  4. Variable parameters (Varargs)

  5. introspector

  6. Generic

  7. For-Each loop


New features of JDK6


  1. Desktop class and SystemTray class

  2. Mapping between objects and XML using JAXB2

  3. Understanding STAX

  4. Using the Compiler API

  5. Lightweight Http Server API

  6. Plug-in annotation processing API

  7. Use Console to develop console programs

  8. Support for scripting languages

  9. Common Annotations

  10. Display of Java GUI interface

  11. Embedded database Derby

  12. Web service metadata

  13. Sorting and filtering of Jtables

  14. Simpler and more powerful JAX-WS


JDK7 new features


  1. Strings can now be used in switch

  2. Generic instantiation type automatic inference

  3. Custom auto-close class

  4. Added some tools and methods to read environmental information

  5. Boolean type inversion, null pointer safety, participating in bit operations

  6. equals between two chars

  7. Safe addition, subtraction, multiplication and division | sd

  8. Enhanced support for Java Collections

  9. Values ​​can be underlined

  10. Support for binary numbers

  11. In try/catch exception capture, a catch can write multiple exception types separated by |

  12. 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


  1. default method of interface

  2. Lambda expressions

  3. functional interface

  4. Method and Constructor References

  5. extends the collection class

  6. New Date API

  7. Annotation multiple annotations

  8. streams

  9. parallel streams

  10. Map data structure improvements


New features of JDK9


  1. Jigsaw Modular Project

  2. Simplified process API

  3. Lightweight JSON API

  4. API for money and currency

  5. Improve lock competition mechanism

  6. Code segment cache

  7. Smart java compilation

  8. http2.0 client

  9. kulla plan


New features of JDK10

  1. Type inference for local variables

  2. GC improvements and memory management

  3. thread local handshake

  4. Heap Allocation on Alternate Memory Devices

  5. Other Unicode Languages ​​- Markup Extensions

  6. Java-based experimental JIT compiler

  7. Open source root certificate

  8. Root Certificate Issuing Certificate (CA)

  9. Consolidate the JDK ecosystem into a single repository

  10. 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.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324690387&siteId=291194637