A Script is run by an interpretter and is slow. Java by itself would be compiled by a compiler and is faster.
2006-08-22 17:20:06
·
answer #1
·
answered by rscanner 6
·
0⤊
1⤋
There are several differences.
In Java Script you don't have to declare variables, the format is very close. I don't think objects are allowed. Java Script is generally used in web pages because it doesn't have to be compiled, and doesn't need to be very fast. You can create a .js file with Java Script and run in on any PC.
Java is compiled and run by a Java virtual machine. You can make a whole application in Java, forms, objects, etc. It's much more powerful than Java script. It has similar syntax but not quite the same.
2006-08-22 17:26:37
·
answer #2
·
answered by Michael M 6
·
0⤊
0⤋
Java is interpretted as well. Javascript and Java share some simliarities, but are different. Javascript runs on the client side and is used inline with HTML. Java is a full fledged programming language capable of creating applications that run on the client and server side.
Javascript is limited to websites.
Java can be used for websites, but it's much more broad. It rivals C/C++.
2006-08-22 18:12:55
·
answer #3
·
answered by To Be Free 4
·
0⤊
0⤋
Java Script is a prototype-based scripting language. jquery is java script written. in basic terms as c and C++ relationship. The javascript like c software language. The Jquery like C++ language.
2016-12-17 15:37:14
·
answer #4
·
answered by ? 4
·
0⤊
0⤋
I recommend you to read these articles:
http://www.htmlgoodies.com/beyond/javascript/article.php/3470971
http://www.jsr.communitech.net/difference.htm
JavaScript controls the behaviour of the elements on a HTML page. Java is used to design web applications (such as chat room), some games and even more.
"Despite the name, JavaScript is only distantly related to the Java programming language, the main similarity being their common debt to the C programming language syntax. Semantically, JavaScript has far more in common with the Self programming language and ActionScript which is also an ECMAScript."
More on JavaScript here: http://en.wikipedia.org/wiki/JavaScript
More on Java here: http://en.wikipedia.org/wiki/Java_programming_language
Both languages are object oriented. JavaScript manipulates the browser using objects such as document, window, string, textarea etc.
2006-08-22 17:23:31
·
answer #5
·
answered by Bogdan 2
·
0⤊
0⤋
JavaScript:
*Interpreted (not compiled) by client.
*Object-based. Code uses built-in, extensible objects, but no classes or inheritance.
*Code integrated with, and embedded in, HTML.
*Variable data types not declared (loose typing).
*Dynamic binding. Object references checked at run-time.
*Cannot automatically write to hard disk.
------------------------------------------------------------------------------------
Java:
*Compiled on server before execution on client.
*Object-oriented. Applets consist of object classes with inheritance.
*Applets distinct from HTML (accessed from HTML pages).
*Variable data types must be declared (strong typing).
*Static binding. Object references must exist at compile-time.
*Cannot automatically write to hard disk.
------------------------------------------------------------------------------------
Actually, the 2 languages have almost nothing in common except for the name. Although Java is technically an interpreted programming language, it is coded in a similar fashion to C++, with separate header and class files, compiled together prior to execution. It is powerful enough to write major applications and insert them in a web page as a special object called an "applet." Java has been generating a lot of excitment because of its unique ability to run the same program on IBM, Mac, and Unix computers. Java is not considered an easy-to-use language for non-programmers.
Javascript is much simpler to use than Java. With Javascript, if I want check a form for errors, I just type an if-then statement at the top of my page. No compiling, no applets, just a simple sequence.
2006-08-22 17:37:13
·
answer #6
·
answered by Anonymous
·
1⤊
0⤋