The Road from Java 8 to Java 11

The Road from Java 8 to Java 11

The road from Java 8 to Java 11 Davide Angelocola Version v0.9.2, 2020-01-18 Table of Contents Introduction. 1 Author . 1 Contributors . 1 License . 1 Upgrade to Java 11 . 2 Which JDK? . 2 Solving migration problems . 2 Launch Single-File Source-Code Programs . 3 java.net.http . 4 Security. 6 var in lambda . 6 Optional.isEmpty() . 6 ArrayIndexOutOfBounds . 7 Character.toString(int) . 7 String.lines() . 7 String.repeat() . 8 String.isBlank() . 8 String.strip() . 9 CharSequence.compare() . 10 Null objects for Reader/Writer and InputStream/OutputStream . 11 Additions to java.nio.file.Files . 11 java.nio.Path.of() . 11 Unicode. 12 Dynamic Class-File Constants . 12 Java Mission Control & Flight Recorder . 12 Upgrade to Java 10 . 13 Local type inference . 13 Docker awareness . 14 new javadoc @summary tag . 16 java.io.Reader.transferTo(Writer) . 16 RuntimeMXBean.getPid() . 17 Upgrade to Java 9 . 18 Immutable collections . 18 java.util.Optional.stream() . 20 Stream.takeWhile()/Stream.dropWhile() . 20 More concurrency updates . 21 Stack walk API . 21 Milling Project Coin . 21 java.lang.Runtime.Version . 22 java.lang.ProcessHandle . 23 @Deprecated enhancements . 23 Unified JVM logging. 24 Compact Strings . 25 Appendix: Upgrade to Java 8 . 26 java.io.UncheckedIOException . 26 StampedLocks . 26 Concurrent Adders . 26 Strong algorithm for SecureRandom . 26 Overflow free operations . 26 String.join() . 27 Generalized Target-Type Inference . ..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    32 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us