No. of Recommendations: 3
There seems to be a lot of confusion between these two languages, the choice of name is unfortunate.

One way to tell is by observing the logo that might show up. This is Java:

Unfortunately some people have used the steaming cup of coffee for JavaScript as well but they write "JavaScript" below the cup of coffee.

JavaScript is a language tightly associated with HTML and browsers. It allows you to alter and interact with the html code loaded into your browser from a web page (more correctly, with the Document Object loaded into your browser). It's called a "client side" language or code as opposed to something like php, which resides entirely on the server and hence it's called "server side" language or code.

To the uninitiated user Java and JavaScript can look very much alike but in fact they are very different. Java does not run in the browser, the runtime environment is loaded into your computer and the browser uses it like it would use a plugin. Look for the folder


you can find other Java folders using Spotlight

Java was conceived as a Windows killer by Sun's Scott McNealy. It would allow you to run applets in a browser without the need of an operating system, i.e. without Windows. Unlike JavaScript which executes within the browser, the Java applet executes outside the browser in the Java runtime environment and the results are displayed in the browser. You can also run Java applets independently from the browser. Not so JavaScript which works only in the browser.

Anyway, if you don't specifically need Java, and most of us don't, disable it in the browser preferences.

Here is a fun Java applet:

If you ran it you would see something like this:

This is a screen dump of the boids applet running on my machine

As they say on TV, don't try this at home. LOL

Denny Schlesinger
Print the post  


When Life Gives You Lemons
We all have had hardships and made poor decisions. The important thing is how we respond and grow. Read the story of a Fool who started from nothing, and looks to gain everything.
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and Glassdoor #1 Company to Work For 2015! Have access to all of TMF's online and email products for FREE, and be paid for your contributions to TMF! Click the link and start your Fool career.