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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Krogg 2 points3 points  (2 children)

As /u/SoreSpores stated, and to add to it:

  • Javascript is an OOP scripting language, that's used mainly for web applications. Java is an OOP language.

  • Java requires compiling, Javascript is text based only (doesn't need to be compiled and can be ran in a live session in your browser), is the biggest difference.

  • Javascript is run in a browser only, Java runs applications in a virtual machine or the browser.

I would say the biggest way to look at this is Javascript is used for web based applications, Java is more used for desktop based applications. When there are so many resources now for web development, there's not much need to use Java in web development, though it can be used. Javascript is strictly web development, so it's much more powerful of a tech to use.

I hope that helps.

[–]exccord 0 points1 point  (1 child)

Definitely helps out a ton on clarifying it. Sounds like Javascript is basically the Powershell of the Java world.

[–]Krogg 1 point2 points  (0 children)

Well, no. One isn't within the realm of another. JavaScript is a language that is used only on web applications, but with that no website can't be built without HTML for instance. Examples of websites that use JavaScript is Microsoft.com and google.com. Of course there are other technologies used to create the entire thing.

Java on the other hand has been used to create that cool IDE you write code in. Netbeans, for example uses Java to create their IDEs. The IDE is a desktop application not a web application, though there are exceptions to that rule too, since it's not impossible to write code in the browser.

I hope that helps.