There seems like there is a copy and paste error where JEP-458 begins and then goes back to the content of JEP-408. (In case OP is the author/editor.)
Thanks - will fix:)
JEP-400: UTF-8 by Default (18)
Wow, I always thought Java had been UTF-8 by default since v6 or something.
JEP-441: Pattern matching for switch (21)
Python got it too!
JEP-440: Record patterns (21)
Is this the easy replacement of "beans"?
JEP-409: Sealed Classes (17)
Huh? Haven't classes had final
forever?
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 a permits
clause in the sealed superclass
Permits is only required when the compiler can't see the extending classes. IE inner classes can extend without needing to be written out in a permits
clause. This isn't really that useful but I've taken advantage of it more than once so who knows
Programming
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev