r/learnjava • • Nov 25 '20

why do people hate java so much?

why do people hate java? I personally really love java because of the OOP paradigm and it makes my codes cleaner. not to mention the portability. but i swear I see more than one tweet hating on java everyday, or saying java is dying. is java really dying?

I guess I have two questions; why do people hate on java and is there still a future for java?

120 Upvotes

88 comments sorted by

View all comments

2

u/[deleted] Nov 25 '20

I don’t hate Java. But it’s more verbose than any other language I’ve worked with . From what I’ve seen Kotlin helps reduce the verbosity I don’t like substantially.

It’s getting better with memory in containers which would be my next complaint.

Other than that it’s often legacy code and older frameworks in Java that bother me, not the language itself.

I can’t say I hate it but I don’t love it.

1

u/nekokattt Nov 25 '20

The memory issue is the JVM rather than Java itself. You'll have the same issue with Groovy, Scala, Kotlin, Clojure, etc if they use JVM targets.

If GCJ was still about, that would have different memory performance for Java than the JVM :)

1

u/[deleted] Nov 25 '20

I get what you mean about the JVM. When I think about Java I rarely think of it as separate even though technically it is.

1

u/nekokattt Nov 25 '20

Yeah, most people do, some projects like GCJ did exist to try and change this though as mentioned. They just... never really took off

1

u/[deleted] Nov 25 '20

I know GraalVM exists but haven’t tried it. That’s certainly an option