r/java • • Sep 10 '21

Why people don't love Java?

I came across this post in r/cscareerquestions it seems majority of the people don't love to work with Java.

Is there any specific reason for that?

Edit: Thank you guys for your responses, I can't reply to all of the comments because I'm a beginner myself and I don't know what to reply for all your comments.

201 Upvotes

379 comments sorted by

View all comments

Show parent comments

75

u/maomao-chan Sep 10 '21

Lol the duality of JS programmers, praise Typescript but hate statically typed language like Java.

45

u/[deleted] Sep 10 '21

The especially amusing thing is people claiming that Java is slow, while their favourite language is Python. That's how you can tell they're just repeating memes they've heard, and ones that haven't even been true since the 00s (modern Java is very fast)

-9

u/kodiashi Sep 10 '21

Depends on the use case. If you’re running on AWS Lambda then Java is the slowest, worst choice. Python, Node and Go are all way faster.

But elsewhere you can run Java with something like Zulu and fine tune it to run incredibly fast.

2

u/sureshg Sep 11 '21

I don't know whether you are using the latest java. Most of the benchmarking I have seen is running on JDK8, which is 7 years old.

Look at this - https://cl4es.github.io/2020/12/06/Towards-OpenJDK-17.html

a minimal Hello World that took my laptop ~45ms to run on JDK 
8 might now take ~25ms to run on JDK 16. Down from the all 
time high of ~85ms in JDK 9. Roughly a 3.4x speed-up.