Impetus Technologies interview question

What are the new features introduced in Java 17, and how do sealed classes differ from abstract classes and interfaces?