Java Vs Javascript??

Discussion in 'JavaScript' started by ggiindia, Nov 15, 2012.

  1. #1
    Is these are two different terms Java and Javascript or same???
    If yes then what is the difference between two? please explain briefly!
     
    ggiindia, Nov 15, 2012 IP
  2. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #2
    And you didn't try google? First 3 results

    
    http://stackoverflow.com/questions/245062/whats-the-difference-between-javascript-and-java
    http://www.htmlgoodies.com/beyond/javascript/article.php/3470971/Java-vs-JavaScript.htm
    http://www.java.com/en/download/faq/java_javascript.xml
    
    Code (markup):
    Bonus: How to use a search engine

    http://www.kidzworld.com/article/1900-search-engine-tutorial
    Code (markup):
     
    GMF, Nov 15, 2012 IP
  3. markabiyn02

    markabiyn02 Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    • Java is an OOP programming language while Java Script is an OOP scripting language.
    • Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only.
    • Java code needs to be compiled while JavaScript code are all in text.
    • They require different plug-ins.
     
    markabiyn02, Dec 13, 2012 IP
  4. udores

    udores Member

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #4
    *Javascript is a thin-client(web browser), scripting, object oriented programming(OOP) language - thin-client, because it can only be understood by the client (web browser); scripting, because it is not compiled but INTERPRETED by your web browser; OOP, because you can create classes, define objects and methods for such classes, extend classes e.t.c

    *On the otherhand JAVA is a fully fledged OOP Language where your source codes must be parsed, COMPILED(not interpreted) into OBJECT code and can be run on any platform(Operating System and not necessarily a browser) having the JRE (Java Runtime Environment)
     
    udores, Dec 13, 2012 IP
  5. udores

    udores Member

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #5
    More precisely, JAVA does not run directly on a web browser. It is java-applets that run on the client browser, while JAVA makes this possible. At ALL TIMES, java object codes are being run on the JVM.
     
    udores, Dec 13, 2012 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    To put it more simply, well... it's in my signature.

    JavaScript is to Java as hamburger is to ham.
     
    deathshadow, Dec 15, 2012 IP
  7. isha189

    isha189 Member

    Messages:
    148
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #7
    JavaScript is a useful, HTML-related coding tool which can streamline web experiences. JavaScript executes in the browser itself. Of course, there are a number of places JavaScript shouldn’t be used — in email messages for example. JavaScript in an email attachment looks similar to malware to most scanners, and may be blocked or stripped — and quite rightly. That’s why in Voltage SecureMail we only use neutral and simple HTML for example.

    On the other hand, Java is used to build real applications. Java applications require a Java virtual machine to execute. Using Java in the browser or on the desktop requires a hefty install for the Java VM and Java application stack, with browser plugins from Oracle and of course regular, annoying patching. Java applications may run using a browser plugin, but they may also be standalone applications with their own GUI. They might also be on smart devices. Android runs mostly Java-based applications, for example. The latest vulnerabilities relate to the execution of arbitrary applications exploiting the Java system itself.
     
    isha189, Mar 8, 2013 IP