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

3

u/Yamoyek Nov 25 '20

My gripe with java is the fact that it forces OOP. There is no reason that a 50 line program should be forced into a class. However, I’m still learning it (albeit not as fast as other languages) because it is one of the most widespread languages. Java isn’t dying, and I don’t think it ever will. The power of java comes from its JVM; write once, run anywhere. This is vastly more convenient than almost everything else. Why? You don’t have to worry about OS specifics. It’s also ten times easier to deploy a script like that. Until a language comes a long that has it’s own virtual machine, java will stay pretty high up on the most common programming languages.

2

u/nekokattt Nov 25 '20

technically python runs in a mini VM, as does ruby, perl, etc.

The difference with the JVM is that it is an extensible API, rather than something built for a single language only, which is why other langs like Kotlin, Scala, Clojure, etc all use it

1

u/Yamoyek Nov 26 '20

True. Every byte code compiled language technically runs in a VM, but Java’s is much more extensive, as you said.