Discussion Locked

Script and Language

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is difference between Language such as Java and Script such as JavaScript.

5 replies

by churdoo

In short, the main differences are that a Language, like Java is typically compiled into object or binary code and is typically self-sustaining, i.e., everything that it needs to operate at run-time is compiled into the end product.
A scripting language, like javascript, is typically interpreted at run-time and requires that the user have such an interpreter. A script, therefore, is not self-sustaining as it requires the interpreter at run-time.
Speaking of javascript specifically, most modern browsers have javascript support built in, although the actual implementation varies from browser to browser, and even varies from browser version to browser version.
For more info on java, go to www.sunjava.com and/or expand your search from there. For more info on javascript, you can go to the browser sites like developer.netscape.com/docs/manuals/javascript.html for netscape browsers, or http://msdn.microsoft.com/scripting/default.htm for the microsoft browsers implementation, or do a general search for something like "javascript documentation". There's a ton of reference sites out there.
--Charlie

by kathy werner

JavaScript is a scripting language designed for adding interactivity to HTML pages. JavaScript is an interpreted language. This means that scripts execute without preliminary compilation, i.e. without conversion of the script text into a system-dependent machine code. The user's browser interprets the script, that is, analyzes and immediately executes it. You can get more information about Java Scripts here:
http://www.javascripter.net/faq/index.htm

Java technology is both a programming language and a platform. You can get more infomation about Java here:
http://java.sun.com/docs/books/tutorial/getStarted/intro/definition.html

This discussion is closed to new replies.