T1414

Ladda ner som PDF

Java 8 Overview

Get updated on all the major new features delivered in Java 8. This is the most feature rich delivery of Java technology in 10 years. Java is now supporting functional programming which will make your code more compact and you will get better performance when using the updated Java libraries.

Audience

Programmers having skills from a previous Java version, who want an update of all the new features of the Java programing language and its core APIs.

Prior knowledge

Basic Java programming skills on an earlier version, for example aquired by attending T2731 Java programmering Grundkurs (Basic) or similar.

Language

The course is taught in Swedish (Contact us if you prefer English).

Courseware

  • Java SE 8 for the really impatient, Gay S. Horstmann
  • Copies of course slides
  • Complete code for all examples/exercises

Java 8 kurs

The course covers lambda expressions in detail, presents important library updates and enhancements, the new Streams API where you will use your lambdas in order to produce compact and effective code. In addition you will learn about the new Date & Time API, some concurrency features and also get a glimpse into the new JavaFX GUI framework.

Hands-On
Every chapter is backed by complete examples that are ready to run. In addition there are a number of exercises that will be addressed and discussed during the course. All Java code, examples and solutions, will be part of the documentation available for all participants.

Contents:

1. Interface Enhancements

  • static methods in Interfaces
  • default methods in Interfaces
  • Avoiding multiple inheritance problems

2. Date & Time API

  • Time-based Time
    • Instant
    • Duration
  • Date-based Time
    • LocalTime, LocalDate, LocalDateTime
    • Period
  • Zone-based Time
    • ZoneID
    • ZonedDateTime

3. Lambda Expressions

  • Functional programming using Lambda Expressions
    • Syntax for Lambda Expressions
    • Deferred execution
    • Capture of variables
  • Functional Interfaces
    • Built in support in Java APIs
  • Predefined Interfaces supporting Lambda Expressions
    • Function
    • Operator
    • Supplier
    • Consumer
    • Predicate
  • Exception handling in Lambda Expressions

4. Collections Framework Updates

  • Updates in base Interfaces; Iterable, Iterator,... Läs mer

Java 8 kurs

The course covers lambda expressions in detail, presents important library updates and enhancements, the new Streams API where you will use your lambdas in order to produce compact and effective code. In addition you will learn about the new Date & Time API, some concurrency features and also get a glimpse into the new JavaFX GUI framework.

Hands-On
Every chapter is backed by complete examples that are ready to run. In addition there are a number of exercises that will be addressed and discussed during the course. All Java code, examples and solutions, will be part of the documentation available for all participants.

Contents:

1. Interface Enhancements

  • static methods in Interfaces
  • default methods in Interfaces
  • Avoiding multiple inheritance problems

2. Date & Time API

  • Time-based Time
    • Instant
    • Duration
  • Date-based Time
    • LocalTime, LocalDate, LocalDateTime
    • Period
  • Zone-based Time
    • ZoneID
    • ZonedDateTime

3. Lambda Expressions

  • Functional programming using Lambda Expressions
    • Syntax for Lambda Expressions
    • Deferred execution
    • Capture of variables
  • Functional Interfaces
    • Built in support in Java APIs
  • Predefined Interfaces supporting Lambda Expressions
    • Function
    • Operator
    • Supplier
    • Consumer
    • Predicate
  • Exception handling in Lambda Expressions

4. Collections Framework Updates

  • Updates in base Interfaces; Iterable, Iterator, Comparator
  • Method references
  • Updates in other Interfaces; Collection, List, Map 

5. The Streams API

  • Stream creation from existing sources
    • Arrays, Collections, Files
  • Iterations using stream operations
  • Streams using lambda expressions
  • Filtering, transforming and reducing streams
    • Optional<T> handling existing/missing return value
  • Bulk operations for collections
    • Piping operations for enhanced performance
  • Enabling parallel processing of streams

6. Concurrency Enhancements

  • New types in package java.util.atomic
  • ConcurrentHashMap improvements
  • Arrays now supporting parallel operations
  • Interface Spliterator supporting parallelism
  • CompletableFuture supporting asynchronous threads

7. JavaFX

  • Overview of the JavaFX API
    • New API for creating GUIs in code
    • FXML supporting XML based GUIs
    • JavaFX SceneBuilder GUI builder tool
  • Containers and Controls
    • Stage defining a top-level GUI container
    • Scene, Group containers holding GUI content
    • A vast number of predefined controls; Label, TextField, Button etc
  • Event Handling
    • Event triggered by user, system updates
    • EventTarget registering interest in Events
    • EventHandler a callback that will is triggerered by an Event
      • Lambda expression can be defined as EventHandler

8. Miscellaneous

  • Added string support for Wrapper classes
  • static methods added to Wrapper classes
  • Base64 encoding
  • Annotation enhancements
  • static methods added to Objects
  • Updates and changes in JVM and tools

 

Kurs-ID: T1414
Längd: 2 dagar
Pris exkl moms: 20 450 kr
Kan betalas med:
TRAINING CARD

Lämna dina kontaktuppgifter om du önskar en företagsintern utbildning.

Tipsa