Using Java 8's New Features

107 Ratings

Course Number: JAV-142

Duration: 2 days (13 hours)

Format: Live, hands-on

Java 8 Training Overview

Accelebrate's Using Java 8's New Features training class introduces students to Java 8's capabilities, many of which are centered on lambda expressions and functional-style programming. Attendees learn to take advantage of Java 8's new powerful programming techniques and complex features.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, online classes for individuals. See a schedule of online courses.

Objectives

  • Be familiar with the additions to Java interfaces
  • Understand and use functional interfaces
  • Understand lambda expressions and method references, and use them to pass behavior (methods)
  • Learn about the pre-defined functional interfaces, and use them with lambda expressions
  • Understand and use the Stream API
  • Process collections using streams, including chaining operations and using collectors
  • Understand and use parallel streams
  • Understand and deal with the issues of parallel processing
  • Learn and use the new Date/Time API
  • Be familiar with other new capabilities

Prerequisites

All students should have solid Java SE 5, Java 6, or 7 programming experience.

Outline

Expand All | Collapse All

Introduction
What's new in Interfaces
  • Static Methods
  • Default Methods
  • Functional Interfaces
Introducing Lambda Expressions
  • Motivation for Lambdas
  • Lambda Expression Overview
  • Lambda Expressions and Functional Interfaces
  • Using Lambda Expressions
  • Working with Method References
The Stream API
  • Overview
    • Shortcomings of Collections
    • What are Streams?
    • Chaining - Intermediate and Terminal Operations
  • Understanding the Stream API
    • Overview - java.util.stream types (Stream, Collector, ...)
    • Keys to Understanding the API
    • Important Functional Interfaces: Predicate, Comparator, Function
  • Stream Processing
    • Using filter()
    • Sorting / Comparator.comparing()
    • Using map()
    • Other operations: peek(), distinct(), limit(), skip()
    • Result producing terminal operations - collect, min/max ...
    • void Terminal Operations - forEach()
    • Existence (e.g. anyMatch) and Finder (e.g. findAny) Operations
  • Collectors
    • Roles and Capabilities
    • Collectors.toList(), Collectors.toSet()
    • Supplier and Collectors.toCollection()
    • Partitioning and Grouping Collectors
Parallel Processing and Concurrency
  • Overview
  • Java 8 Parallel Processing using Streams
  • Ground Rules / Requirements for Using Parallel Stream Processing
  • Multithreading / Concurrency Issues
  • Race Conditions, Data Synchronization, Locks
  • Performance Issues and Considerations
Date/Time API
  • Overview and Limitations of Previous API
  • The Date/Time API (JSR 310)
  • Creating and Working with LocalData/LocalTime/LocalDateTime Instances
  • Formatting Date/Time
  • Localization / Time Zones
  • Periods and Durations
  • Performing Calculations on Data/Time types
Other Capabilities
  • Compact Profiles
  • Using Optional Instead of null
  • Repeatable and Type Annotations
  • Nashorn JavaScript Engine
  • Minor New Features
Conclusion

Training Materials:

All students receive comprehensive courseware.

Software Requirements:

  • At least 8GB RAM
  • Any operating system that supports Java 1.8 or later
  • JDK 8
  • The Java development tool the students are likely to use after the class (Eclipse Luna or later is recommended, but IntelliJ IDEA, IBM RAD, NetBeans, and other tools could be supported)
  • Other free software - please contact us if you have purchased this class


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan