1 / 11

Java SE

Java SE. Simon Ritter Java Technology Ambassador. @ speakjava. JDK 7 shipped in July 2011 JDK 8 scheduled to ship in 2014 Expecting a 2-year cadence between platform releases going forward Java SE 8 platform under JSR 336 Major features planned for JDK 8

may
Download Presentation

Java SE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java SE Simon Ritter Java Technology Ambassador @speakjava

  2. JDK 7 shipped in July 2011 JDK 8 scheduled to ship in 2014 Expecting a 2-year cadence between platform releases going forward Java SE 8 platform under JSR 336 Major features planned for JDK 8 Lambda expressions and default methods (JSR 335) Annotation-related language changes (JSR 308) Date and Time API (JSR 310) Compact Profiles JDK 8 in the works

  3. JDK 8 • Client • Deployment enhancements • JavaFX 8 • Java SE Embedded support • Enhanced HTML5 support • 3D shapes and attributes • Printing • Innovation • Lambda aka Closures • Language Interop • Nashorn • Java for Everyone • Profiles for constrained devices • JSR 310 - Date & Time APIs • Non-Gregorian calendars • Unicode 6.2 • ResourceBundle. • BCP47 locale matching • Globalization & Accessibility • Core Libraries • Parallel operations for core collections APIs • Improvements in functionality • Improved type inference • Security • Limited doPrivilege • NSA Suite B algorithm support • SNI Server Side support • DSA updated to FIPS186-3 • AEAD JSSE CipherSuites • Tools • Compiler control & logging • JSR 308 - Annotations on Java Type • Native app bundling • App Store Bundling tools • General Goodness • JVM enhancements • No PermGen limitations • Performance lmprovements

  4. In 2006-2008, a vigorous community debate about closures Multiple proposals, including BGGA , CICE, and FCM December 2009 – OpenJDK Project Lambda formed November 2010 – JSR-335 filed Current status Draft specification available Prototype (source and binary) available on OpenJDK Coming soon to mainline JDK 8 builds The road of closures in Java

  5. Language Lambda Expressions (closures) Interface Evolution with default methods Libraries Bulk data operations on Collections More library support for parallelism JVM Default methods Enhancements to invokedynamic Coordinated Platform Upgrade with Lambda

  6. Letus look at some code Robust error handling in a scheduling application // Event handler for when things go terribly wrong filterTask.setOnFailed(new EventHandler<WorkerStateEvent>() { @Override public void handle(WorkerStateEvent e) { e.getSource().getException().printStackTrace(); } }); // Event handler for when things go terribly wrong filterTask.setOnFailed( e -> e.getSource().getException().printStackTrace());

  7. for (Shape s : shapes) { if (s.getColor() == BLUE) s.setColor(RED); } shapes.forEach(s -> { if (s.getColor() == BLUE) s.setColor(RED); });

  8. Extension Methods interface Collection<T> { default void forEach(Block<T> action) { for (T t : this) action.apply(t); } // Rest of Collection methods… }

  9. Lambda expressions + extension methods allow: Internal iteration Bulk data operations for existing types Better support for parallelism leveraging fork/join Project Lambda

  10. Project Nashorn

  11. Developer Preview available Schedule on: http://openjdk.java.net/projects/jdk8 Contribute to OpenJFX: http://openjdk.java.net/projects/openjfx JDK 8 builds with many features already available Try out Lambda and check out JavaFX 8: http://jdk8.java.net Participate in the JCP for free through your local JUG Jigsaw builds also available from Java.net Test Pilots Wanted

More Related