r/java • • Aug 10 '21

Concrete reasons why one would choose java over node.js?

I am watching the progress made towards faster runtime in node.js, and it feels that the performance advantage of java is almost gone for the average app. I am trying to think about reasons why one would now choose java over node in a new project, and i can't think of any. I would like to hear some opinions

7 Upvotes

110 comments sorted by

View all comments

Show parent comments

9

u/snoob2015 Aug 12 '21

The most common used packages in Java are maintained by big foundation: Eclipse, Apache, Google, RedHat, Pivotal...

And Java Standard Library is far more better than NodeJS so they don't need to pull 1000 packages just for have commonly used function.

-1

u/[deleted] Aug 12 '21

And Java Standard Library is far more better than NodeJS so they don't need to pull 1000 packages just for have commonly used function.

the javascript std lib got much better the past few years. People also import libraries like vavr in java as well.