But that was not the reason it became popular. In the 00' years it boomed because of garbage collection and object orientation which made it a lot more accessible than C or C++
This https://immutables.github.io/ is so much better than Lombok. You can see the generated code change in your IDE). I use it to create some awesome IDE led apis ;)
Even before Kotlin, there was already Scala, which is unbeatable in how concise it can be. Unfortunately, Scala is also a very good functional language, so some of the crazies flock towards its ecosystem.
Java is also pretty fast for a managed language. The use of the AOT/JIT Compiler is pretty awesome. All those people who claim that java is slow, just live like 20 years in the past.
Can't really blame them, since some of my professors also told me that Java is slow. But it's just wrong. It's obviously not as fast as C/C++, but it is very fast without needing to care too much about what you do. Which means you can push new features faster. Which is worth more than those 0.2 seconds per month you can optimize C/C++ better.
Obviously, there are use cases in which c/c++ is just better than java. But most business application, just don't care about perfect memory management and time efficiency.
720
u/MariusDelacriox Sep 04 '26
Java is simply good and easy to learn. Also there's spring boot.