Skip to content

Latest commit

 

History

History
31 lines (30 loc) · 1.17 KB

File metadata and controls

31 lines (30 loc) · 1.17 KB
layout flashcard-topic
title Java New Features
main_card_title Java New Features
main_card_bg #6586c3
card_bg #9aacd5
cards
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) { }