What is the difference between java and java script?
Printable View
What is the difference between java and java script?
Javascript runs in a web browser window allowing the web page to be dynamic, Java applications run independently but can be made into an applet to run in a window on a browser. :D :D :D
Java is a complete language that gets compiled to bytecode. Features are strict type checking, full object orientation based on type definitions, garbage collection and a large built-in library.
Java needs a virtual machine to run. You can write applets, which are small applications with reduced access rights that run within a browser or other container applications.
JavaScript is a scripting language. Its syntax is based on Java, but the similarities end there. JavaScript is interpreted from text. Features are free-type variables (no type checking at all), basics of object orientation through prototypes (runtime object building) and good browser integration. JavaScript is mostly used to manipulate XML or HTML pages through the Document Object Model. With XUL there's an XML-based language wich enables real applications to be developed in JavaScript.