JavaScript is not the same as Java. I repeat: JavaScript is not the same as Java. Although the names are much alike, JavaScript is primarily a scripting language for use within HTML pages, while Java is a real programming language that does quite different things from JavaScript. In addition Java is much harder to learn. It was developed by Sun for use in pretty much anything that needs some computing power. JavaScript was developed by Brendan Eich, then working at Netscape, as a client side scripting language (even though there's no fundamental reason why it can't be used in a server side environment). Originally the language was called Live Script, but when it was about to be released Java had become immensely popular (and slightly hypey). At the last possible moment Netscape changed the name of its scripting language to “JavaScript”. This was done purely for marketing reasons. Worse, Eich was ordered to "make it look like Java". This has given rise to the idea that JavaScript is a "dumbed-down" version of Java. Unfortunately there's not the slightest shred of truth in this story. Java and JavaScript both descend from C and C++, but the languages (or rather, their ancestors) have gone in quite different directions. You can see them as distantly related cousins. Both are object oriented (though this is less important in JavaScript than in many other languages) and they share some syntax, but the differences are more important than the similarities. If you are a C++ or Java programmer you will be surprised by some of JavaScript’s features. Since I don’t have any previous programming experience, the differences are not described on this site. The best you can do is buy David Flanagan, “JavaScript, the Definitive Guide”, 5th edition, O’Reilly, 2006. In this book the differences between C++/Java and JavaScript are clearly explained.
Javascript is a client side browser scripting language where execution occurs on the client (Firefox). Java is an enterprise programming language used to build business applications. There should be no comparison between the two because they are totally different and have completely different uses.
Javascript is client side scripting language and java is more towards server side scripting language. Well javascript is mostly used for client side validation. While java is a base for all server side coding technology. Like we have java applet, j2EE,javabeans these are all enterprise based technology which have java as their coding language so as to use them to develop custom or enterprise application. Moreover javascript is more inclined towards web based instant action like we have in AJAX (Asynchronous Javascript and XML). The javascript is very help in creating user interactive web pages . They provide quick response to user clicks and actions on website. Java is more like microsoft C# . Even C# is used for windows based and server side asp.net web application.
Good to know. Thanks. Might as well write a differences comparison between JavaScript and ActionScript which would be more useful.
I really thought that Java Script and Java are all alike. I still have a lot more to learn in computers and stuff.