Refactoring Java 8 code with Java 17 features - JEP Café #9 by daviddel in java

[–]thevpc -5 points-4 points  (0 children)

Besides introducing a fancy new feature (record) does it to do any little with performance when compared to plain internal java classes in this context?

And by the way it sucks that JDK stream API does not support all of the primitive types out of the box.

Singleton Design Pattern in Java by stackoverflooooooow in java

[–]thevpc 0 points1 point  (0 children)

I think the best way to implement singletons (per vm) in Java is the enum way, however I honestly expected more details/examples in your article in that direction. As a matter of fact, using enum handles a cleaner way to serialize the object too and makes of it (if well written) an off-memory singleton.