Results 1 to 7 of 7
  1. #1
    AWPtic is offline Member
    Join Date
    Mar 2009
    Posts
    39
    Rep Power
    0

    Default Difference between Java...

    Hi, I was just wondering what the difference is between regular Java and Javascript.

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Everything?

    They are two completely different languages. When JavaScript was created (which was after Java) the creaters, purposely, designed it with similar syntax and, purposely, gave it a similar name in order to "ride the Java wave", which was just beginning, then.

    So, other than a superficial syntax similarity, there is nothing that is the same.

  3. #3
    AWPtic is offline Member
    Join Date
    Mar 2009
    Posts
    39
    Rep Power
    0

    Default

    But, what is JavaScript primarily used for?

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Webpage "dynamics". Find a JavaScript forum and you'll get better answers.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Java is not JavaScript and JavaScript is not Java.

    Java is a complex language, and allows programmer to create stand alone applications, which applications that can run by themselves. JavaScript cannot do that. JavaScript is much simpler language, must always embedded in another language, mostly in HTML/XHTML.

    Another similarity is also there. Both languages are object oriented. You can work on with object in both cases.

    Those are the most valuable feature in both languages. Actually there a lot. Just search on the web, you can find them easily.


  6. #6
    vysh is offline Member
    Join Date
    Apr 2009
    Posts
    11
    Rep Power
    0

    Default

    To start off with a simple phrase, Javascript is mainly used for client side validation. For eg., a railway reservation form will have many validations like, checking for proper email id and so on.

    Whereas java is a programming language with which you can develop an application( which is not possible with javascript).

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Difference betwen Core Java And J2se?
    By makpandian in forum New To Java
    Replies: 6
    Last Post: 02-28-2009, 07:55 PM
  2. what is the difference between jsp and jsf?
    By makpandian in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 12-31-2008, 06:55 PM
  3. difference btwn java.awt.* and java.awt.event.*
    By ahdus in forum New To Java
    Replies: 5
    Last Post: 11-17-2007, 07:07 PM
  4. Difference between ASP and JSP
    By barney in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-07-2007, 08:15 AM
  5. whats the difference between Java core,J2EE......
    By prince24 in forum New To Java
    Replies: 2
    Last Post: 07-11-2007, 07:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •