[Java 22] What's new in Java 22

Java forum is a space for discussions focused on Java programming language. Whether you're a beginner or expert, share insights, seek help, and connect with fellow Java enthusiasts. Explore topics ranging from fundamentals to advanced techniques in this community.
Post Reply
mat
Posts: 68
Joined: Thu Apr 04, 2024 9:03 am
Location: Chicago

[Java 22] What's new in Java 22

Post by mat »

Language Improvements:
  • Unnamed variables and patterns (JEP 456)
  • Statements before super (preview, JEP 447)
  • String templates (second preview, JEP 459)
  • Implicitly declared classes and instance main methods (second preview, JEP 463)
Libraries:
  • Foreign function and memory API (JEP 454)
  • Class-file API (preview, JEP 457)
  • Stream gatherers (preview, JEP 461)
  • Structured concurrency (second preview, JEP 462)
  • Scoped values (second preview, JEP 464)
  • Vector API (seventh incubator, JEP 460)
Performance:
  • Regional pinning for G1 (JEP 423)
Tooling:
  • Launch multi-file source-code programs (JEP 458)
Other updates:
  • Deprecation of obsolete APIs and removal of previously deprecated ones
  • Addition of new algorithms to keytool and jarsigner
  • Garbage collector throughput improvements
  • Better version reporting for system module descriptors
  • Improved "wait" handling options for native code
  • Unicode Common Locale Data Repository updated to version 44
  • Type annotations support for types loaded from bytecode
  • ForkJoinPool and ForkJoinTasks can now better handle uninterruptible tasks
  • Additional flexibility for configuring client versus server TLS connection properties
  • Improved native memory tracking, including the ability to report peak usage

List of JEPs:
Hello! I am Matt! I help write informational content on this forum :geek:
Post Reply