Cool in Java 8, and new in Java 9 - RainFocus

[Pages:78] What is cool in Java 8 and new in 9

Aurelio Garcia-Ribeyro Director of Product Management Java Platform Group March 2017

Copyright ? 2017, Oracle and/or its affiliates. All rights reserved.

Safe Harbor Statement

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle's products remains at the sole discretion of Oracle.

Copyright ? 2017, Oracle and/or its affiliates. All rights reserved.

3

Introduction

Aurelio Garcia-Ribeyro ? Director Product Management, Java Platform Group, Oracle ? In charge of managing the product requirements for Oracle's JDK since joining Oracle through the Sun acquisition in 2010 ? Before joining Oracle, worked at Sun Microsystems for the Java Product Management team ? MBA from MIT Sloan and Bachelor degree in Systems Engineering from Universidad de Lima

Copyright ? 2017, Oracle and/or its affiliates. All rights reserved.

Java 8

"One of the biggest updates ever to a major language"

Andrew Binstock

Former Editor in Chief, Dr.Dobbs , now with Java Magazine

Copyright ? 2017, Oracle and/or its affiliates. All rights reserved.

Abridged Content List for JDK 8

? Lambda Expressions ? Default Methods ? Method References ? Date Time APIs - JSR 310

Copyright ? 2017, Oracle and/or its affiliates. All rights reserved.

Abstracting over Behavior

Collection people = ...; for (Person p : people){

if (p.getAge() > 18) ?? How do we remove this person ???

}

Copyright ? 2017, Oracle and/or its affiliates. All rights reserved.

Abstracting over Behavior

Collection people = ...; Iterator it = people.iterator(); while (it.hasNext()) {

Person p = it.next(); if (p.getAge() > 18)

it.remove(); }

Copyright ? 2017, Oracle and/or its affiliates. All rights reserved.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download