Π’Ρ‹ΡˆΠ»Π° Java 21 LTS

Π’Ρ‹ΡˆΠ»Π° общСдоступная вСрсия Java 21. Java 21 являСтся LTS-Ρ€Π΅Π»ΠΈΠ·ΠΎΠΌ, Π° Π·Π½Π°Ρ‡ΠΈΡ‚ Ρƒ Π½Π΅Π³ΠΎ Π±ΡƒΠ΄ΡƒΡ‚ Π²Ρ‹Ρ…ΠΎΠ΄ΠΈΡ‚ΡŒ обновлСния ΠΊΠ°ΠΊ ΠΌΠΈΠ½ΠΈΠΌΡƒΠΌ 5 Π»Π΅Ρ‚ с ΠΌΠΎΠΌΠ΅Π½Ρ‚Π° Π²Ρ‹Ρ…ΠΎΠ΄Π°.

ΠžΡΠ½ΠΎΠ²Π½Ρ‹Π΅ измСнСния:

  • String Templates (Preview)
  • Sequenced Collections
  • Generational ZGC
  • Record Patterns
  • Pattern Matching for switch
  • Foreign Function & Memory API (Third Preview)
  • Unnamed Patterns and Variables (Preview)
  • Virtual Threads
  • Unnamed Classes and Instance Main Methods (Preview)
  • Scoped Values (Preview)
  • Vector API (Sixth Incubator)
  • Deprecate the Windows 32-bit x86 Port for Removal
  • Prepare to Disallow the Dynamic Loading of Agents
  • Key Encapsulation Mechanism API
  • Structured Concurrency (Preview)

Examples at HowToDoInJava

ΠŸΡ€ΠΈΠΌΠ΅Ρ€Ρ‹ Π½Π° Π₯Π°Π±Ρ€Π΅

Π˜ΡΡ‚ΠΎΡ‡Π½ΠΈΠΊ: linux.org.ru