- Java Mission Control (JMC), an advanced monitoring and diagnostics tool inherited from JRockit is now fully supported on JDK 7. This is a commercial feature;
- Part of JMC, Java Flight Recorder enables you to record events and metrics during runtime and extract them at will;
- support for the Retina display with Swing/AWT and JavaFX;
- new JDK binary for hardfloat Linux/ARM, for ARM-based micro servers and development boards. With this, JDK 7 now officially supports the Rasbian Linux distribution (for Raspberry Pi);
- a new Deployment Rule Set feature to enable fine granular controls for execution of Applet and WebStart applications;
- security feature enhancements for applets, JAXP and x.509 certificates.
There's also a huge list of bug fixes.
For more information, see the Java SE Development Kit 7, Update 40 (JDK 7u40) release notes.
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer