Java is growing rapidly day by day.
Version 23 released in September 2024 and it comes up with a lot of new features.
You can now,
- Use primitive types like int, float, boolean in instanceof, switch and pattern matching
- Create custom intermediate operations in Streams
- Create a main method without using “public static” keyword and not even define it inside a class.
- Perform concurrency in a structured way using Structured Concurrency
- Create thread level constants using Scoped Values
- Allow statements before super() and this() methods in constructors
- Import an entire module in your class using “import module” keyword
And few more ...
A few of them are in preview mode and will soon be a permanent feature of Java.
This book breaks down the concepts and explains it in a simple way with examples.
This is helpful for Java developers to update themselves with the new features.