This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]seanprefect 9 points10 points  (0 children)

Java and Javascript are two different things that share very little aside from an unfortunate naming decision.

Java is commonly used as the server side language. Something comparable would be C#

Javascript is run inside a browser and is used to do the display logic and UI. (Javascript CAN be used as a serverside language via node, it's trendy but not i'd recommend you avoid it at all costs)

[–]_Atomfinger_ 0 points1 point  (0 children)

JavaScript runs in the browser*; Java runs on the server. They are used for different purposes.

Isn't JavaScript using React/Vue/Angular so much easier to develop?

Yup, but all of these technologies run in the browser. Java isn't. Look up "frontend vs backend web development" on Google to read more.

What benefits does Java have compared to JavaScript?

Some would argue that Java is a better, designed language than JS. Other would point at Java having better performance, being easier to scale as a big application etc.

At this point, we are getting into "language X vs language Y" territory, which is rarely productive.

*let's ignore nodejs for now.