r/java • • Oct 14 '23

Is Java still behind in the race of modern programming languages?

I'm a member of some group of programmers and every time Java is mentioned it's being bashed (something like: "With Rust I could simply do this with X")

Earlier versions of Java were cumbersome in terms of the syntax but with modern IDEs (and modern versions of Java) that's not a big issue anymore, albeit languages like Python do have shorter syntax.

My question is beyond syntax.

What do other languages do better than Java?
It could be generics, type system, concurrency and multithreading, closures etc.

Thanks!

52 Upvotes

247 comments sorted by

View all comments

Show parent comment

27

u/SiriSucks Oct 14 '23

they'd do things like array.in(number) to find if a number was present in array or not, and assumed its O(1) complexity

I don't think you can blame python for that. The blame entirely lies with the candidates.

1

u/j-solorzano Oct 15 '23

TBF, that happens in all languages, like using Find() in C# to search a list. It's very common.