Jdk 16: Whatвђ™s Coming In Java 16 — Verified & Original
Old way : if (obj instanceof String) { String s = (String) obj; ... }
: The OpenJDK community transitioned its source code management from Mercurial to Git and moved its repositories to GitHub . JDK 16: What’s coming in Java 16
The following features graduated from preview status to become permanent parts of the Java language in version 16: Old way : if (obj instanceof String) {