r/java • • Apr 20 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
291 Upvotes

295 comments sorted by

View all comments

49

u/coincoinprout Apr 20 '21

Java developers can confidently trust the JVM to do what's best. Whether they're implementing a multithreaded application or storing a large amount of data on the heap, they can be confident they won't shoot themselves in the foot with memory management or data races.

That's an exaggeration. It's true that you don't have to deal with memory management directly. But you can absolutely shoot yourself in the foot with memory management or data races. I don't know a lot of java programmers who never had to deal with OutOfMemoryErrors or thread safety issues. I think that the JVM is awesome but IMO you have to understand how it works at least a bit if you want to be a good developer. Thinking that the JVM will magically deal with all these issues would be a big mistake, and that's how you end up with an application that crashes in production.

9

u/lessthanoptimal Apr 20 '21

Yep I agree. Due to the problems I solve, I probably have to spend more time thinking about memory management than if I was writing a modern C++ project. Things do get more complex in non GC languages once that part of the code needs to get optimized. At least that's my experience.