Java vs JavaScript

First of all:

Java is not JavaScript and JavaScript is not Java.

Java is an Object oriented programming language created at Sun Microsystems, where as JavaScript is a scripting language and is a product of Netscape. Many of their programming structures are similar as they both use the C-style syntax. But, JavaScript has a smaller and simpler set of commands.

Moving on, Java can stand on its own, ie,, a program written in Java can be executed on its own, whereas for JavaScript, the code must be embedded inside HTML code for execution on a webpage. In other words, Java can be used to create standalone applications, whereas it is impossible using JavaScript.

For the execution of the java program, it is first compiled to form byte codes and these byte codes are interpreted by the Java runtime environment for execution, which makes the execution slower. As for JavaScript, there is no compilation phase. Instead, the JavaScript code is directly interpreted by the web browser for execution.

More From Author

The closest thing to replace pen and paper for good :)

I have used two other styluses namely, the Bamboo Stylus and the Cregle iPen. By…

Apple Event October 2012

Been watching the live streaming of the Oct 23rd apple event. This is the event where…

Bootcamping Windows 8

Finally installed Windows 8 to Bootcamp(to non-mac users, this means that the windows now runs…

0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *