Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8250623 JEP 394: Pattern Matching for instanceof
  3. JDK-8262138

Release Note: JEP 394: Pattern Matching for instanceof

    XMLWordPrintable

Details

    • Verified

    Description

      Pattern matching for the `instanceof` operator has been made a final and permanent feature of the Java language in JDK 16. Pattern matching allows common logic in a Java program to be expressed more concisely and safely, namely the conditional extraction of components from objects.

      For further details, see [JEP 394](https://openjdk.java.net/jeps/394).

      Attachments

        Activity

          People

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: