Difference Between Java and JavaScript

by Jamal A
The article I read talks about the difference between Java and JavaScript.  They are essentially similar but somewhat different depending on how you look at them. According to the article, Java is an Object Oriented Programming (OOP) Language created by James Gosling of Sun Microsystems. However, JavaScript is a scripting language known as LiveScript. JavaScript contains a much smaller and simpler set of commands than Java does. It is easier for the average person to understand and much simpler for any individual to work with. The main difference between Java and JavaScript is that Java can stand on its own while JavaScript must be placed inside an HTML document to function. A Java is a fully contained program. It is a much larger and more complicated language that creates applications. However, JavaScript is text based. You write it to an HTML document and it is run through a browser. You can alter it after it runs and run it again and again.

In my opinion, JavaScript’s main benefit is that it can be understood by the common human. It is much easier and more robust than Java. It allows for fast creation of web page events. Many JavaScript commands are known as Event Handlers. They can be embedded right into existing HTML commands. JavaScript is a little more tolerant than Java. It allows more freedom in the creation of objects. I personally believe both will create great web page events and can offer interaction between the user and your Web page. But they are not created equally by any means. I strongly believe this article relates to class because it covers the topic that we were going over in class. I learned a lot from this article because I was curious as to what the difference was between the Java and JavaScript and this article cleared all my doubts.

 

Burns, J. (n.d.). Java vs. JavaScript. HTML Goodies: The Ultimate HTML Resource. Retrieved April 29, 2012, from http://www.htmlgoodies.com/beyond/javascript/article.php/3470971/Java-vs-JavaScript.htm

4 thoughts on “Difference Between Java and JavaScript”

  1. Ahh I was wondering about how Java was related to JavaScript. I read somewhere that JavaScript is a subet of Java like how Java is a subset of C, whatever that means. I always thought that they supported each other, Im glad to see that someone is able to explain it better. Is Java being in the industry still? Makes me wonder because from what I remember, Java was pretty powerful because you could make almost anything with it, but then again I am no expert at Java.

  2. I never really understood the difference between them both until now. Working with simple examples of Java Script in class does make it seem a lot more user friendly to use and interpret. I do believe that at a certain point they do relate to one another. It seems that by learning the concepts from Java they do translate to Java Script. By using Java Script the programmer has a lot more options when it comes to developing a website.

  3. I understood the fact that one is a full OOP language while the other is a scripting language. But I always thought that the two somehow were related or supported each other in some way. Javascript has a lot of obvious advantages with web development and is more preferred by myself for the sake of our projects.

  4. Great article. I agree that Java is more complicated than JavaScript. Even though these two language relates to each other, the way of coding of JavaScript more simple than Java. Thank you for posting this article.

Comments are closed.