Java Reference
In-Depth Information
▪ Swing improvements include SwingWorker , table sorting and filtering, and Swing
double-buffering for performance;
▪ Scripting Engines Support (see Calling Other Languages via javax.script ) provides a
formal structure for invoking external scripting languages from within Java;
▪ Java Compiler API lets a Java program compile code on the fly;
▪ JAX-WS mini-server javax.xml.ws.Endpoint in the JDK;
▪ JDBC upgraded to JDBC 4;
▪ Version 2 of JAXB (Java API for XML Binding);
▪ Support for pluggable annotations.
What Was New in Java 7
This section lists the main changes added in Java 7.
Java 7 Language/JVM Changes
The Java 7 language introduces a small variety of useful features, including:
▪ Multicatch (see the following section)
▪ Type Inference for Generics (see Type Inference for Generics (Diamond Operator, <>) )
▪ String Switch (see Java 7 String Switch )
▪ Binary constants, like int delta = 011001b;
▪ Use of “_” as numeric group separator, like long ageOfOldestFossil =
4_000_000_000L; (but note that these are not used or verified, they're just for readabil-
ity)
▪ try-with-resource (see Try With Resources )
▪ JVM invokedynamic instruction
Search WWH ::




Custom Search