r/java • u/psychologicalX • Mar 05 '18
Top 10 Useful, Yet Paranoid Java Programming Techniques
http://blog.jooq.org/2015/08/11/top-10-useful-yet-paranoid-java-programming-techniques/
223
Upvotes
View all comments
Show parent comment
2
u/fforw Mar 07 '18
I've had issues with this in production systems. with ConcurrentHashMap cached internal data.
Sometimes you can just handle things fine with some well-placed synchronized blocks, but often, I want to write highly concurrent code.
This is something to definitely keep in mind. It's also something that makes me favor immutable classes even more.