How is JavaScript different from Java?

Open 1 Answers 70 Views Web Development

It's not the most powerful or the most flexible language out there, but it's a great language for exploring these concepts. JavaScript is a very practical language to know. But it is a language that works with and manipulates web pages.

Java and JavaScript are totally different languages and are not related in any meaningful way. JavaScript would't run directly on the operating system, but it is a part of programming language or refer as scripting language meaning it is more limited programming languages that are embedded inside another program. 

For example, ActionScript is the programming language that we use inside Flash. VBScript can be used inside Microsoft office, and JavaScript only works inside the web browser.

1 Answer


A quick brief differences between the two based on the Java published article.

The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform.

JavaScript does not create applets or stand-alone applications. In its most common form, JavaScript resides inside HTML documents, and can provide levels of interactivity to web pages that are not achievable with simple HTML.

Key differences between Java and JavaScript:

  • Java is an OOP programming language while Java Script is an OOP scripting language.
  • Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only.
  • Java code needs to be compiled while JavaScript code are all in text.
  • They require different plug-ins.

I hope this would help as well. :) 

answered Feb 27 by michael New Member (1,140 points)