Java Cup
Inside Java

News and views from members of the Java team at Oracle

How many subclasses can be declared for a sealed class?

What is the maximum number of sub classes that can be listed for a sealed class (analogous for interfaces). Does the language actually define a limit; i.e., is it virtually infinite at the level of the language?


More at https://stackoverflow.com/questions/72774607/how-many-subclasses-can-be-declared-for-a-sealed-class/72777160#72777160.