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

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)

17

u/thomascgalvin Sep 10 '21

Modern Java can be faster than C in some instances. The current generation of VMs are insane.

3

u/ihbarddx Sep 10 '21

Java faster than C? I've heard this. Any specific examples? Any specific examples where all C variables are static?

1

u/thomascgalvin Sep 10 '21

The JVM can profile the hardware at runtime and JIT a binary specifically for that machine, which can be much more optimized than a generic C binary. No guarantees, of course, but it is possible.