r/AskProgramming • u/Zd_27 • Mar 20 '25
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?
226
Upvotes
1
u/Positive_Minimum Mar 21 '25
Java is not bad. its just a PIA due to verbosity and being over-engineered. Also, its a scam too because the Java world pushes this idea of "write once, run anywhere" which is not the case at all. You cannot run your final Java program anywhere. Literally no systems run Java. Without having to install a bunch of crap into your server and manage dependencies and libraries like any other interpreted language.
Java is a load of crap because of the headaches it imposes on the developers to write programs in it, and the headaches it imposes on sys admins to manage deployments with it.
This does not make it a bad language. It has an incredibly robust and feature packed ecosystem. Its got a lot of industry standard tooling. Programs written in Java power millions, if not billions, of devices around the world. There's also no shortage of jobs and workplaces that utilize Java.
Its just that everyone in Java-land is suffering unnecessarily. Java is a relatively "old" language and suffers from being ahead of its time. Its important to remember the context of what the programming world was like when it was originally released. It was solving very real and difficult issues with code and library shipping with things like the JVM. But not all of the methodologies it developed ended up being good and not all of its promises were lived up to as the decades went on. Newer languages do a lot of things it does, but better.
In programming, its all about using the right tool for the job. Despite the headaches you will rarely find a job where Java is not an appropriate tool.