Java 15
New Features
JVM
Language
-
Sealed Classes Preview (JEP 360)
-
Pattern Matching for instanceof Preview (JEP 375)
-
Text Blocks (JEP 378)
-
Records Preview (JEP 384)
-
Local Interfaces and Enums Preview (JEP 384)
API
-
Edwards-Curve Digital Signature Algorithm (EdDSA) (JEP 339)
-
Hidden Classes (JEP 371)
-
Remove the Nashorn JavaScript Engine (JEP 372)
-
Foreign-Memory Access API (Second Incubator) (JEP 383)
-
Deprecate RMI Activation for Removal (JEP 385)
Internal
-
Reimplement the Legacy DatagramSocket API (JEP 373)
Downloads
Sandbox
Instantly compile and run Java 15 snippets without a local Java installation.
public class Java15 {
final static String helloTemplate = """
+===========+
| Hello |
+===========+
| Java %s |
+===========+""";
public static void main(String[] args) {
System.out.printf(helloTemplate, 15);
}
}