2. • Caractéristiques
– 50% de réduction de votre code projet
– 18% gain en productivité
– 25% gain en performance
• Lambda Expressions
– Basic lambda
• (Type1 var1, Type2 var2 …) -> { method body }
– Lambda with type inferencing
• (var1, var2 …) -> { method body }
8. • In its simplest form, an annotation looks
like the following:
– @Entity
• Exemple
9. • Annotation Types Used by the Java
Language(java.lang):
– @Deprecated @Deprecated
– @Override @Override
– @SuppressWarnings @SuppressWarnings
– @SafeVarargs @SafeVarargs
– @FunctionalInterface @FunctionalInterface
10. • Annotations That Apply to Other
Annotations (java.lang.annotation):
– @Retention @Retention annotation
– @Documented @Documented
– @Target @Target annotation
– @Inherited @Inherited annotation
– @Repeatable @Repeatable annotation
11. • Cette nouvelle API est basée sur deux différents
modèles de conception du temps:
– Le temps Machine
– et le temps Humain.
• Exemple:
– Pour une machine, le temps n'est qu'un entier
augmentant depuis l'epoque (01 janvier 1970
00h00min00s0ms0ns).
– Pour un humain en revanche, il s'agit d'une succession
de champs ayant une unité (année, mois, jours, heure,
etc.).
12. • Le temps Machine
– java.time.Instant
– java.time.Duration
• Exemples
• java.time.Instant
17. • Caractéristiques:
– 150% de puissance
• Du JavaScript en ligne de commande
– jjs en ligne de commande (<chemin_jdk>/bin/) :
– jjs permet d’exécuter des fichiers .js