H3AR7B3A7 / NewJavaFeatures

Taking a look at new features in JDK 9 and up.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New features in Java

Going over some useful new features in Java without using any 3d party libraries... Be aware we listed these features under the JDK version they first appeared in as a preview, but there might be some deviation from this rule.

JDK 9

Release notes

  • Process API
  • Collection utils
  • Optional::stream
  • Diamond Operator Extension
  • Interface Private Method
  • (Jigsaw: modular system)
  • (JShell)

JDK 10

Release notes

  • Keyword: var & Type Inference
  • Unmodifiable collections:
    • Copy Of
    • To Unmodifiable
  • Optional: OrElseThrow

JDK 11

Release notes

  • String methods
  • Lambda's with annotations
  • HttpClient
  • Unicode 10

JDK 12

Release notes

  • String methods
  • Switch statement changes

JDK 13

Release notes

  • Switch statement changes
  • Pattern
  • Text Blocks

JDK 14

Release notes

  • Records

JDK 15

Release notes

  • Sealed Classes

About

Taking a look at new features in JDK 9 and up.


Languages

Language:Java 100.0%