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/CoffeeBaron Mar 21 '25
Every language has its strengths and not so strengths. Java gets a lot of flack for essentially haveing two owners over its lifetime, and design decisions ranging over that fact, and them prioritizing backwards compatibility over practicality when pushing new features to the language really makes it clunky to work with sometimes (this may have been addressed by newer versions since 8 or 11, but for example, the way generics are handled at run time is vastly different than say C#, because Java 5 didn't support generics, so the JIT compiler would need to strip out typing at run time to make older code happy). This is why when people switch to C#, Python, etc as their main working language away from Java, they are pretty surprised on how little effort it takes to do something compared to Java (the example I remember off the top of my head is getting the value from an enum being more verbose in Java, whereas in C#, you just call ToString() as you probably would expect from other languages)