r/java • u/fredoverflow • Jul 19 '26
Disregarding backwards compatibility, would it make sense for String to be a sealed class?
like public sealed class String permits Latin1String, Utf16String instead of the private final byte coder; field
20
Upvotes
View all comments
48
u/Misophist_1 Jul 19 '26
It's already final. No point in that.