Interview questions
Question 214 of 254
FreeWhat Java version does Spring Boot 3 require, and what language features does that unlock?
Spring Boot 3 & Modern Java
Spring Boot 3 requires a minimum of Java 17 (up from Java 8 for Spring Boot 2.x) — unlocking record classes (concise immutable data carriers, ideal for DTOs), sealed classes/interfaces (restricting which classes can implement/extend a type), pattern matching for `instanceof`, text blocks for multi-line strings, and enhanced switch expressions, all usable throughout application code once the Spring Boot 3 baseline is adopted.
Intermediate5 min
