Description
This training will allow you to understand and practice the new features of version 8 of Java. You will discover lambda expressions and exploit the possibilities of functional programming. You will learn how to interact JavaScript code with Java code and discover new APIs.
Who is this training for ?
For whom ?Designers, developers, Java project managers.
Prerequisites
Training objectives
Training program
- Synthèse des nouveautés de Java 8
- Vue d'ensemble des ajouts : 195 nouvelles entités (classes, interfaces).
- Les expressions lambda.
- Ecrire du code SQL dans un code Java 8.
- Les implémentations par défaut des interfaces et
- FunctionalInterface, les nouvelles annotations.
- Les évolutions des streams.
- La nouvelle API de gestion des dates et des heures.
- Les évolutions d'API de java.
- lang, java.
- util, java.net.
- La possibilité d'exécuter du code JavaScript avec Java 8 Nashorn.
- Travaux pratiques Vérification de l'installation du JDK 8 (outils, javadoc).
- Lambda expressions
- Notion of nested anonymous class, improvements brought by the concept of lambda expression.
- Syntactic aspects (declaration, implementation, passing parameters, scope of variables.
- ).
- The concept of "functor" through "functional" interfaces and the java package.
- util.
- function .
- Using lambda-expressions to manipulate collections.
- Contributions in writing SQL code The Listeners.
- Practical work Discovery of lambda-expressions.
- Advanced functional programming
- The use of
- FunctionalInterface.
- The functional interfaces provided by JDK 8.
- Predicate, Function, Supplier, Consuler.
- References to methods and constructors.
- Practical work Implementation of advanced aspects.
- Java 8 rhino
- JavaScript within Java? From Rhino present in Java 7 to Oracle Nashorn, ECMAScript-262 engine of Java 8.
- Using the jjs command line.
- Call JavaScript code from a Java application, either directly or using a separate file.
- js.
- Call Java code from a JavaScript script.
- Practical work JavaScript calls from Java.
- New Date and Time API
- The difficulties caused by the Date and GregorianCalendar APIs, the JodaTime alternative and the JSR 310.
- The concepts of machine time and human time, the basic principles of the new API .
- Machine time management with java.
- time.
- Instant and java.
- time.
- Duration.
- Human time with java.
- time.
- LocalDate, java.
- time.
- LocalTime, java.
- time.
- LocalDateTime.
- Practical work Using the new date and time management API.
- Other new features
- New streams.
- Map-reduce.
- Practical work Implementation of new features.