minus-squareKport@feddit.detoProgramming@programming.dev•A list of major Java and JVM features since JDK 17 to 22linkfedilinkarrow-up6·6 months agofinal prevents a class from being extended completely, while a sealed class is only extensible by a select few subclasses, which are explicitly defined in a permits clause in the sealed superclass linkfedilink
final
prevents a class from being extended completely, while a sealed class is only extensible by a select few subclasses, which are explicitly defined in apermits
clause in the sealed superclass