I agree with everyone else. JAVA and JavaScript have nothing to do with each other. The only minor connection between the two is that they are both object-oriented languages. Well, you can connect them also by saying that JavaScript was developed by Netscape, JAVA was developed by Sun, and Netscape and Sun have an alliance presently; however, that connection is just silly. ;-)
A few issues I had with other posts though:
Quote:
|
JAVA is a *compiled* language, perhaps most typically used on the 'Net to create binaries (called class files) for JAVA "applets". These are executed by the browser JVM [Java Virtual Machine]. (Similarly, it is used for server-side "servlets" and back-end work; though not nearly as extensively, as yet, as other languages.)
|
JAVA is not really a compiled language. It is an interpreted language, similar to PHP and Perl. Where C++, COBOL, and other compiled languages are compiled into machine language, JAVA is "compiled" (for lack of a better term) into bytecode. The difference is that there is another program running between the platform and the JAVA program that interprets the bytecode (namely the JVM -- as mentioned). This is similar to the way that the php.exe file works between the web server and the PHP file, and how the Perl interpreter works between the web server and the Perl file.
Also, I wouldn't go as far as to say that JAVA is most used for applets. I was confused if you meant this in your post, etLux. It can be read two ways: "On the Net, JAVA is used mostly to create applets" or "JAVA is mostly used to create applets on the Net." See the difference? I would agree if you meant the first. Right now, its most popular usage on the web is creating applets. However, if you meant that JAVA is mostly used to create applets in general, you are mistaken.
Quote:
|
PS: Did you know that JS was originally called LiveScript at one point?
|
Incorrect. LiveScript was the predecessor to JavaScript, not just another name. It is the same relationship that SGML has to both HTML and XML. It came first, then was improved to create JavaScript, but the JS language was never just called LiveScript.
I apologize if this post seemed like I was picking on anyone's comments, but I wasn't. I just wanted to make those two points clear.
Sam