: The OpenJDK community transitioned its source code management from Mercurial to Git and moved its repositories to GitHub .

The following features graduated from preview status to become permanent parts of the Java language in version 16:

New way : if (obj instanceof String s) { ... use s directly ... } Modernization and Infrastructure