JEP 387: Sealed Classes (Preview)

GPTKB entity

Statements (21)
Predicate Object
gptkbp:instance_of gptkb:Java_2_Platform
gptkbp:addresses class hierarchy complexity
gptkbp:aims_to control class hierarchies
gptkbp:allows restricting which classes can extend a class
gptkbp:author gptkb:Brian_Goetz
gptkbp:discusses subclassing rules
gptkbp:encourages better API design
gptkbp:enhances pattern matching
gptkbp:improves type safety
gptkbp:includes sealed, non-sealed, and permits keywords
gptkbp:introduced_in gptkb:Java_17
gptkbp:is_implemented_in gptkb:Java_Development_Kit_(JDK)
gptkbp:is_part_of Java language enhancements
gptkbp:is_supported_by gptkb:Java_programming_language
gptkbp:proposed_by sealed classes in Java
gptkbp:provides better encapsulation
gptkbp:related_to JEP 409: Sealed Interfaces
gptkbp:released gptkb:Java_17
gptkbp:status gptkb:Preview
gptkbp:bfsParent gptkb:Java_14
gptkbp:bfsLayer 5