What you'll learn:
- All the new features in Modern Java
- LVTI, TextBlocks, Enhanced Switch, Record Classes
- Use Sealed Class to apply controlled Inheritance
- Learn Pattern Matching to write concise and structured code
- Java Platform Module System(JPMS) and its benefits
- Student will be able to upgrade their Java knowledge to the latest Java Features
Learn the newModern Java Features by coding it. This is a pure codingcourse and you will get a completeunderstanding of all thelatest Javafeatures by coding it.
Why Should I take this course?
This course will help theJavadevelopers to build their knowledge on the newJavafeatures.
All the new features such as:
Local Variable Type Inference
Text Blocks
Enhanced Switch
Records
Sealed Classes/Interfaces
Pattern Matching
Simple Web Server
New Http Client
Java Platform Module System (JPMS)
This course will give you the confidence on implementing newJavafeatures in realJavaprojects.
By the end of this course you will have a complete understanding of new Java features and how to use them in your day to day project.
Course Overview :
Section 1 -Getting Started:
This section explains about what will be covered in this course.
Section 2 : Introduction to Modern Java : Big Picture
In this section, I will give you all an introduction to Modern Java.
Section 3: Local Set Up
In this section, we will set up the latest java environment and base project for this course.
Section 4: Local Variable Type Inference (LVTI) using var
In this section, we will code and learn about the LVTI feauture to simply local variable declaration using type inference.
Section 5: Text Blocks
In this section, we will code and learn about the TextBlocks which enhances the power of String in Java.
Section 6: Enhanced Switch
In this section, we will code and learn about the new Switch which is an expression.
Switch - as an Expression
Multiline switch expression using "yield"
Enhanced Switch are exhaustive
Section 7 : Records
In this section, we will code and explore the record classes concept in Modern Java.
Records Classes
Custom Constructors and Validations in Record Classes
Object Equality in Record Clases
Section 8 : Pattern Matching
In this section, we will code and learn about pattern matching.
Introduction to Pattern Matching
Record Patterns - Pattern Matching on Records
Guarded Patterns
Section 9 : ChekoutService Application [ Real Time Usecase]
In this section, we will implement a realtime application using all the modern java concepts that we have learned so far.
Section 10 : Simple Web Server
In this section, I will give you a demonstration of jwebserver and how it serves the files and folders as resources.
Section 11 : New Http Client
In this section, we will code and explore the new HTTP Client that has support for HTTP2/Websockets.
New HttpClient - GET Request to retrieve movie by ID
JUnit test for the HTTP Client
Build HTTPClient in Asynchronous mode
Build HTTP Client - GET Request to Retrieve AllMovies
Section 12 : Java Platform Module System (JPMS)
In this section, we will code and learn about how to build java application using JPMS or modules.
Introduction to JPMSBuild a Java app using JPMS
Working with Multiple Modules
Working with Multiple Modules - Transitively
Unnamed Modules and Automatic Modules
By the end of this course you will have a complete understanding of all the Latest Java features and implement it in real Java projects.