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-14

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

Latest commit

 

History

History

README.md

Java 14

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

JEPs

  • 305 - Pattern Matching for instanceof (Preview)
  • 343 - Packaging Tool (Incubator)
  • 345 - NUMA-Aware Memory Allocation for G1
  • 349 - JFR Event Streaming
  • 352 - Non-Volatile Mapped Byte Buffers
  • 358 - Helpful NullPointerExceptions
  • 359 - Records (Preview)
  • 361 - Switch Expressions (Standard)
  • 362 - Deprecate the Solaris and SPARC Ports
  • 363 - Remove the Concurrent Mark Sweep (CMS) Garbage Collector
  • 364 - ZGC on macOS
  • 365 - ZGC on Windows
  • 366 - Deprecate the ParallelScavenge + SerialOld GC Combination
  • 367 - Remove the Pack200 Tools and API
  • 368 - Text Blocks (Second Preview)
  • 370 - Foreign-Memory Access API (Incubator)

Features

  • Switch Expressions
    • Promotion to standard
  • Text Blocks (second preview)
    • added new flags
  • Pattern Matching for instanceof (preview)
    • added as Preview
  • Records (preview)
    • added as Preview
    • Notes:
      • Does not have a extends clause, only extends java.lang.Record;
      • Is implicitly final, thus cannot be extended;
      • Cannot declare other fields and cannot contain instance initializers, it only contains its components declared at record header;
      • Its components are final and cannot be updated via reflection (throw IllegalAccessException);
      • Cannot declare native methods;
      • Local records is always static (local class and enum as never static).
  • JFR Event Streaming
    • Here is a great example of a tool built

JVM

  • Helpful NullPointerExpections
    • flag to enable: -XX:+ShowCodeDetailsInExceptionMessages
  • Packaging tool to create self-contained Java applications
    • bin: jpackage

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