Skip to main content
Main menu
Includes navigation links and user settings
Browse products
Sign up
Log in
Practical Refactoring to Modern Java
How to use the many new Java features that have been added since Java 11
$250
one-time purchase
Buy now
Course content
18 sections | 88 lessons
Expand all sections
0. Introduction
3 Lessons
1. Replace local variable declarations with "var" (Java 10 & 11, JEPs 286 & 323)
3 Lessons
2. String.repeat() can be used (Java 11, no JEP)
3 Lessons
3. Replace old style switch with switch expressions (Java 14, JEP 361)
6 Lessons
4. Replace fragmented Strings with Text Blocks (Java 15, JEP 378)
6 Lessons
5. Replace simple data classes with records (Java 16, JEP 395)
11 Lessons
6. Pattern Matching for instanceof (Java 16, JEP 394)
10 Lessons
7. Tighten up hierarchies with sealed classes (Java 17, JEP 409)
8 Lessons
8. Code Snippets in Java API Documentation (Java 18, JEP 413)
3 Lessons
9. Use sequenced collection method instead (Java 21, JEP 431)
7 Lessons
10. Record Patterns (Java 21, JEP 440)
3 Lessons
11. Pattern Matching for switch (Java 21, JEP 441)
5 Lessons
12. Unnamed Variables & Patterns (Java 22, JEP 456)
6 Lessons
13. Stream Gatherers (Java 24, JEP 485)
3 Lessons
14. Flexible Constructor Bodies (Java 25, JEP 513)
3 Lessons
15. Compact Source Files and Instance Main Methods (Java 25, JEP 512)
2 Lessons
16. Module Import Declarations (Java 25, JEP 511)
5 Lessons
17. The End
1 Lessons