Java Language SpecificationJava SE 18 Edition
Java SE 18 Edition
The Java Language Specification, Java SE 18 Edition, was the official, authoritative specification of the Java programming language. It was published in February 2022 and followed the Java SE 17 Edition of the JLS.
It specifies the Java programming language as implemented in Java SE 18.
This Java SE 18 Edition goes beyond the Java SE 17 Edition of the JLS by specifying the following features:
- UTF by default
- Javadoc code snippets
switch
pattern matching (but only as a second preview feature)
This language change was introduced in Java SE 18 in 2022.
We have not (yet) cross-referenced this language specification with our misconceptions. To find misconception by language specification section, pick one of the cross-referenced specifications.