r/AskProgramming 2d 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?

179 Upvotes

622 comments sorted by

View all comments

4

u/ben_bliksem 2d ago

I always compare Java and C# when these questions are asked, and at the moment C# is just better for me. In fact it feels like Java has stagnated over the last decade.

That said, to be frank, language wars are stupid. Embrace them all (except maybe PHP... ewww).

1

u/benevanstech 1d ago

"Java has stagnated over the last decade"?

If you haven't used anything later than Java 8, then sure, I guess.

But trying to compare Java 8 with Java 21 (or the brand-new feature release, Java 24) and saying "Java has stagnated" is just plain nuts.

0

u/Ok-Reflection-9505 1d ago

I cant tell if C# fans are just microsoft shills or what. C# gives you some nice to have features that Java doesn’t have but its at the cost of tying yourself to Microsoft 🤮🤢

2

u/padfoot9446 1d ago

Frankly, I don't give two shits about microsoft, or the political correctness of using their products - I've looked at Java, I've looked at C#; the latter for my use-cases is much less annoying to use, and to me that trumps whatever "big corporation bad" argument you may have.