Top Banner
The Smarter Everyday project is owned and operated by CTE Solutions Inc. Java 8 – Why it matters? - Jean-François Bilodeau (Senior Instructor)
23

Java 8 - New Updates and Why It Matters?

Jun 15, 2015

Download

Education

This presentation was used during CTE Solutions' Smarter Everyday event by JF Bilodeau
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Java 8 - New Updates and Why It Matters?

The Smarter Everyday project is owned and operated by CTE Solutions Inc.

Java 8 – Why it matters?

- Jean-François Bilodeau (Senior Instructor)

Page 6: Java 8 - New Updates and Why It Matters?

The Smarter Everyday project is owned and operated by CTE Solutions Inc.

Java 8 – Why it matters?

- Jean-François Bilodeau (Senior Instructor)

Page 7: Java 8 - New Updates and Why It Matters?

What's new?

New language features

New library features

Under the hood improvements

Page 8: Java 8 - New Updates and Why It Matters?

New Language Features

Lamdba expressions

Annotation Improvements

Default methods

Page 9: Java 8 - New Updates and Why It Matters?

Lambda Expression

Finally! (Most requested feature after generics)

Treat functions as data

Page 10: Java 8 - New Updates and Why It Matters?

Annotations Improvements

Annotations can be used with any type declaration

• Allows deeper integration with compile-type verification

• Can be used with new operator, type cast, throws keyword, etc.

Annotations can be repeated

• Use the Repeatable annotation when declaring

Page 11: Java 8 - New Updates and Why It Matters?

Default Method

Allows for extending an interface without breaking existing code

As a consequence, allows multiple inheritance

Page 12: Java 8 - New Updates and Why It Matters?

Other Language Features

Parameter name reflexion• Need to compile with -parameters

option

Improved type inference for generics

Page 13: Java 8 - New Updates and Why It Matters?

New Library Features

Rehauled collections & Streams

Date-Time Package

Unsigned integer arithmetics

Page 14: Java 8 - New Updates and Why It Matters?

Streams

Java 8 provides functional-style operation on collections

Provides sequential or parallel map-reduce transformations

New package: java.util.stream

Page 15: Java 8 - New Updates and Why It Matters?

Date-Time Package

New package: java.time

Can finally forget about java.util.Date and java.util.Calendar classes

Rich and fluent set of classesConsistent design

Page 16: Java 8 - New Updates and Why It Matters?

Unsigned Integer Arithmetics

Java doesn't support unsigned integers (uint)

The java.lang.Integer and java.lang.Long class extended to support unsigned integers operations

• To/Parse operations

• Arithmetic

Page 17: Java 8 - New Updates and Why It Matters?

Under the Hood

Removal of PermGen Space

AES hardware support

Static-link JNI

Client-side TLS 1.2 enabled by default

Page 18: Java 8 - New Updates and Why It Matters?

Additional Improvements

New Nashorn scripting engine

Performance improvements

New/updated tools

Details:http://www.oracle.com/technetwork/java/javase/8-whats-new-2157071.html

Page 19: Java 8 - New Updates and Why It Matters?

Java 8 New Features

Thank you!

Page 20: Java 8 - New Updates and Why It Matters?

Interested in Training?UPCOMING COURSE DAYS PRICEPR005 Fundamentals of Computer Programming 4 $1,995.00

JV001 Java for Non-Programmers 4 $1,995.00JV002 Java Programming Language 5 $2,495.00JV008 Java for Web Development 5 $2,495.00JV003 Advanced Java Programming 5 $2,495.00JV007 Fast Track to SOA and Web Services (JAX-WS) 3 $1,495.00JV017 Java Enterprise Edition 4 $1,995.00JV019 Fast Track to Spring 3 3 $1,495.00JV020 Fast Track to Spring 3, Spring MVC and Spring Web Flow 5 $2,495.00JV009 Java Struts 3 $1,495.00JVF14 Web Development with Struts 2 5 $2,495.00JVF04 Developing Enterprise Applications using J2EE 3 $1,495.00PR004 Design Patterns 4 $1,995.00JVF15 RESTful Java and Web Services 2 $995.00JV018 JavaServer Faces 2 2 $995.00JVF16 Secure Web Application Development and Top 10 Vulnerabilities 2 $995.00

JV011 Developing Business Component with EJB 3.1 5 $2,495.00

Page 22: Java 8 - New Updates and Why It Matters?

Training with impactTECHNICAL MANAGEMENT BUSINESS

MicrosoftVMwareCloud ComputingIT and Cyber SecurityCompTIAJava Programming-LanguagesNovell & UNIX

TOGAFEnterprise ArchitectureITILCOBiTAgile and ScrumBusiness AnalysisProject Management

Change ManagementCommunication SkillsLeadership SkillsNegotiation SkillsProblem Solving SkillsFacilitation Skillsand many more…

Page 23: Java 8 - New Updates and Why It Matters?

CTE Solutions Inc. - Ottawa11 Holland Avenue, Suite 100Ottawa, Ontario, K1Y 4S1 Tel: (613) 798-5353Toll Free: 1 (866) 635-5353Fax: (613) 798-5574  CTE Solutions Inc. - Toronto77 Bloor St. West, Suite 1406Toronto, Ontario M5S 1M2 Tel: (416) 284-2700Toll Free: 1 (866) 635-5353Fax: (416) 284-6797

For Free Training Resources