Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage Java 19 Content on InfoQ


RSS Feed
  • A Comprehensive Guide to Java's New Feature: Pattern Matching for Switch

    Java brings an update with Pattern Matching for Switch. This article provides a detailed exploration of this feature, examining its support for any reference type, inclusion of null values, and introduction of guarded patterns. It also delves into the new runtime exception class - MatchException, and illustrates the compatibility of this feature with traditional switch statements.

  • Virtual Threads: New Foundations for High-Scale Java Applications

    Virtual threads are a lightweight implementation of Java threads, delivered as a preview feature in Java 19.  They dramatically reduce the effort of writing, maintaining, and observing high-throughput concurrent applications. Virtual threads breathe new life into the familiar thread-per-request style of programming, allowing it to scale with near-optimal hardware utilization.