To run each example use: java --enable-preview --source 12 <FileName.java>
- 12 - Preview language and VM features
- 189 - Low-Pause-Time GC (experimental)
- 230 - Microbenchmark Suite
- 325 - Switch expressions (preview)
- 334 - JVM Constants API
- 340 - One AArch64
- 341 - Default CDS Archives
- 344 - Abortable mixed collections for G1
- 345 - Promptly return unused memory from G1
- Switch Expression (preview)
- Compact Number Format
Collectors.teeing
- More Versatile Error Recovery With CompletableFuture
exceptionallyAsync(Function<Throwable, ? extends T> f)
exceptionallyAsync(Function<Throwable, ? extends T> f, Executor e)
exceptionallyCompose(Function<Throwable, ? extends CompletionStage<T>> f)
exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>> f)
exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>> f, Executor e)
- Default CDS Archives
-Xshare:off
to disable it
- Garbage Collection
- Shenandoah: Red Hat low-pause-time GC, experimental;
- G1: improvements and promptly returns unused memory SO;