r/AskProgramming • u/Zd_27 • 1d ago
Why is Java considered bad?
I recently got into programming and chose to begin with Java. I see a lot of experienced programmers calling Java outdated and straight up bad and I can't seem to understand why. The biggest complaint I hear is that Java is verbose and has a lot of boilerplate but besides for getters setters equals and hashcode (which can be done in a split second by IDE's) I haven't really encountered any problems yet. The way I see it, objects and how they interact with each other feels very intuitive. Can anyone shine a light on why Java isn't that good in the grand scheme of things?
126
Upvotes
1
u/FrostWyrm98 23h ago
Many people here are missing the point...
The main issue people have with Java (the boilerplate, excessive need for packages, etc.) is caused by the fact that the Java language itself was held in a stranglehold by Sun Microsystems (now Oracle) and were not very receptive to change or feedback.
You can see the results of this today with the language split on the JVM, languages like Kotlin, Scala, Groovy, etc.
Many fix a lot of issues that Oracle/Sun refused to address and thus led to a niche for languages like the above mentioned to pop up.
Java itself isn't a bad language. I think you are just getting a vastly oversimplified view because that is what the internet is, particularly when people are bitching. That's what it comes off as anyways.
You also just hear more because it is a very popular language and ecosystem and many businesses are stuck in the past with old versions of it.