We've added support for Java 16 standard language features (such as records and pattern matching) to CodeQL. Code using those features can now benefit from CodeQL's security analysis as part of code scanning.
We also continue to support older Java versions. CodeQL is able to analyze code written in Java version 7 through 16.
Learn more about CodeQL and code scanning.