| title |
description |
Java 5 New Features |
Enhanced For Loop, Generics, Enums, Autoboxing |
|
| title |
description |
Java 8 New Features |
Functional Programming - Lambdas & Streams, Static methods in interface |
|
| title |
description |
Java 9 New Features |
Modularization (Java Platform Module System) |
|
| title |
description |
Local Variable Type Inference |
Declare variables with inferred types using var |
|
| title |
description |
JShell |
Interactive REPL tool for experimenting with code |
|
| title |
description |
Private methods in interfaces |
Define private methods to reduce code duplication |
|
| title |
description |
Switch Expressions |
Use switch statement as expression for more concise code |
|
| title |
description |
Text Blocks |
Readable way to declare multi-line string literals (Between """ and """) |
|
| title |
description |
Record Classes |
Concise way to declare classes mainly used for data |
|
| title |
description |
Record Example |
public record Person(String firstName, String lastName, int age) { } |
|