23. December 2009 04:08
Some people think that Java and JavaScript are the same thing. But in reality, the only thing they share is a similar name and a similar syntax. Java is a full object oriented programming language. One of the appeals of Java is that it runs on a Virtual Machine. Meaning that it is not fully system specific on the type of computer it can be run on. Any computer that has the Java Virtual Machine installed can run the Java compiler and can execute Java code. The Java Virtual Machine enables Java programs to work across platforms, such as Windows or Macintosh. As opposed to C and C++ code, which is compiled into machine code and system specific. Which is why there are Windows specific programs and Macintosh versions. Java programs can be run in Web browsers in the form of Applets. The program will run on the browser as if it was running off of your hard drive.
JavaScript was designed by Netscape to enhance HTML elements on web pages. JavaScript shares a similar name to Java, but is not a full programming language. It is a scripting language that only runs from within Web browsers. There are no different object types, as everything in JavaScript is treated as an object. JavaScript was designed to use some of the same naming conventions and programming syntax as Java.
97470f6c-1af9-4126-8b35-df629080c99b|3|3.0