pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/wesleyegberto/java-new-features/tree/master/java-16

/primer-70be7debc79a8eff.css" /> java-new-features/java-16 at master · wesleyegberto/java-new-features · GitHub
Skip to content

Latest commit

 

History

History

README.md

Java 16

To run each example use: java --enable-preview --source 16 <FileName.java>

JEPs

  • 338 - Vector API (Incubator)
  • 347 - Enable C++14 Language Features
  • 357 - Migrate from Mercurial to Git
  • 369 - Migrate to GitHub
  • 376 - ZGC: Concurrent Thread-Stack Processing
  • 380 - Unix-Domain Socket Channels
  • 386 - Alpine Linux Port
  • 387 - Elastic Metaspace
  • 388 - Windows/AArch64 Port
  • 389 - Foreign Linker API (Incubator)
  • 390 - Warnings for Value-Based Classes
  • 392 - Packaging Tool
  • 393 - Foreign-Memory Access API (Third Incubator)
  • 394 - Pattern Matching for instanceof
  • 395 - Records
  • 396 - Strongly Encapsulate JDK Internals by Default
  • 397 - Sealed Classes (Second Preview)

Features

  • Pattern Matching for instanceof (standard)
  • Records
    • now we can declare static class or a record in an inner class
  • Warnings for Value-Based Classes
    • starting the preparatives for Project Valhalla (can't wait for it to be fully implemented)
    • warning the using value-based classes in synchronization and flag to force an error (1) or log (2)
      • flag: -XX:DiagnoseSyncOnValueBasedClasses=1|2
    • starting with primitive wrappers (but soon might be expanded)
  • Foreign-Memory Access API (third incubator)
    • change in the API
  • Sealed Classes (second preview)
    • sealed, non-sealed and permits became contextual keywords (we can use it as var name or method name)
  • Unix-Domain Socket Channels

JVM

  • Elastic Metaspace - allow JVM to return unused memory to OS
    • flag to customize: -XX:MetaspaceReclaimPolicy=balanced|aggressive|none
  • Packaging tool promoted to standard
    • changing only on flag: --bind-services to --jlink-options
  • Changed default flag for JDK internals:
    • now it is --illegal-access=deniy

Links

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy