What's the difference between JavaScript and Java?

John Zukowski

JavaScript is an object-oriented scripting language that allows you to create dynamic HTML pages, allowing you to process/validate input data and maintain data, usually within the browser. Originally created by Netscape for use with their Navigator browser, Microsoft reverse engineered the technology, added their own varients and defined JScript. Due to differences, both were more formally turned into the ECMA-262 standard and renamed EcmaScript, though nobody really refers to it by that name. [See http://developer.netscape.com/docs/javascript/e262-pdf.pdf for the ECMA-262 specification.]

On the other hand, "Java" is a programming language, core set of libraries, and virtual machine platform that allows you to create compiled programs that run on nearly every platform, without distribution of source code in its raw form or recompilation. [See the comp.lang.java FAQ http://metalab.unc.edu/javafaq/javafaq.html#xtocid190290 for more information on the origin of Java.]

While the two share part of their names in common, they are really two completely different programming languages/models/platforms. Yes, they can communicate with each other through technologies like LiveScript. However, you should really consider them as two completely separate technologies.

About | Sitemap | Contact