March 2024
Intermediate to advanced
798 pages
18h 48m
English
This chapter includes 13 problems covering sealed and hidden classes. The first 11 recipes will cover sealed classes, a very cool feature introduced in JDK 17 (JEP 409) to sustain closed hierarchies. The last two problems cover hidden classes, a JDK 15 (JEP 371) feature that allows frameworks to create and use runtime (dynamic) classes hidden in the JVM’s internal linkages of bytecode, and to the explicit usage of class loaders.
You’ll be skilled in both topics by the end of this chapter.
Use the following problems to test your programming prowess in manipulating sealed classes and hidden classes in Java. I strongly encourage you to give each problem a try before you turn to the solutions and download the ...