Java 8 was released on March 18, 2014
Java 9 (2017):
1. JShell (REPL) - Interactive shell for testing code quickly. Lets you run
snippets without class files. Great for learning and debugging.
Java 10:
1. var Keyword - Local variable type inference. Reduces boilerplate. Only for local
variables.
2. GC Improvements - Better G1 GC performance. Parallel full GC. Reduced pause
times.
Java 11 (LTS):
1. New String Methods - isBlank(), lines(), repeat(). Makes common ops easier.
Cleaner API.
2. HttpClient API - Modern HTTP client with async and HTTP/2. Replaces old
HttpURLConnection. Cleaner networking.
Java 17 (LTS):
1. Sealed Classes (Final) - Final implementation. Prevent unwanted subclassing.
Good for domain models.
2. PRNG Updates - Better random number APIs. Jumpable and splittable generators.
Improved simulations.
Java 21 (2023 - LTS):
1. Virtual Threads (Final) - Officially released. Enables millions of threads.
Perfect for scalable servers.
2. Pattern Matching for Switch (Final) - Type-based switch. Removes complex if-
else. Works well with records and sealed classes.
Recent is JDK 25 - September 16, 2025
---------------------------------
which java version and compatibility with SB version
Spring Boot 2.x supports Java 8 (minimum) and up (e.g., Java 11) for 2.7.x.
Spring Boot 3.x requires Java 17+ (minimum Java 17).
For the latest 3.5 release line: Java 17 through Java 25 are supported.