Java Script vs Java

Discussion in 'Programming' started by Orion, Oct 13, 2009.

Remove these ads by signing in
Remove these ads by signing in
Thread Status:
Not open for further replies.
  1. Orion New Member

    Member Since:
    Sep 29, 2009
    Message Count:
    969
    Likes Received:
    25
    Location:
    http://admin-spot.com
    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.
  2. mesdak New Member

    Member Since:
    Dec 7, 2009
    Message Count:
    2
    Likes Received:
    0
    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.
  3. Krazysarah New Member

    Member Since:
    Dec 16, 2009
    Message Count:
    25
    Likes Received:
    0
    Occupation:
    Freelancing
    Location:
    America
    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.
  4. immediate Member

    Member Since:
    Jun 3, 2009
    Message Count:
    81
    Likes Received:
    0
    Location:
    kavoir.com
    Good to know. Thanks. Might as well write a differences comparison between JavaScript and ActionScript which would be more useful.
  5. kimox New Member

    Member Since:
    Jan 6, 2010
    Message Count:
    17
    Likes Received:
    0
    I really thought that Java Script and Java are all alike. I still have a lot more to learn in computers and stuff.
  6. kimox New Member

    Member Since:
    Jan 6, 2010
    Message Count:
    17
    Likes Received:
    0
  7. okapopin New Member

    Member Since:
    Dec 21, 2009
    Message Count:
    115
    Likes Received:
    4
    thanks for share.. helps me to know much about that ..
Thread Status:
Not open for further replies.

Share This Page