Skip to content

marc06210/javaFeatures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Main java features

Java 17

sealed classes and PatternMatching on switch as a preview feature.

Java 16

New type of declaration: record.

instanceof now supports PatternMatching.

toList() method in Stream.

Java 14

NullPointerException now gives more accurate information on source of exception.

Better way to use switch.

Java 12

New method in Files, mismatch() to compare two files.

String new methods.

New Teeing collector in the streams.

Java 11

HttpClient standardized.

Keyword var now possible in lambda.

Possibility to use a not() predicate.

String some new useful methods: lines, strip...

Method toArray added to Collection.

Methods readString and writeString added to Files.

Support of Unicode 10.

Java 10

New way to create unmodifiable list from a Stream: Collectors.toUnmodifiableList().

New keyword var to create local variables.

New method orElseThrow() for Optional.

Java 9

New method ifPresentOrElse() for Optional.

About

Main developer's feature by java version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages