Magento Expert Forum - Improve your Magento experience

Results 1 to 11 of 11

Enumerate the differences between Java and JavaScript?

  1. #1

  2. #2
    Junior Member
    Join Date
    Oct 2016
    Posts
    984
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default

    Key differences between Java and JavaScript:
    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.

  3. The Following User Says Thank You to barbara glowam For This Useful Post:

    sellhousehn (17-03-2017)

  4. #3
    Junior Member
    Join Date
    Jun 2016
    Posts
    44
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Java - It is a programming language used for creating desktop applications or others. To compile java based programs you need JDK+JRE set up in your computer. Since java is pure object oriented programming language everything you do is under a class.

    On the other hand, Javascript is a client side programming language. You don't need anything except a browser for running a script. In javascript everything is objects/functions. There is no concept of classes.



    Corporate Team Building | Indoor Team Building Activities
    Last edited by ORLOVA; 06-05-2019 at 06:05 AM.

  5. The Following User Says Thank You to ORLOVA For This Useful Post:

    sellhousehn (17-03-2017)

  6. #4
    Junior Member kajal's Avatar
    Join Date
    Sep 2014
    Location
    Bangalore
    Posts
    1,446
    Thanks
    0
    Thanked 20 Times in 20 Posts

    Default

    JAVA :
    Java is an object oriented programming language.
    Java creates application that can run in a virtual machine or browser.
    Java code allows programmer full functionality and needs to be compiled.
    Java is high-level, static,compiled and strongly type language
    In Java there is different datatypes like int, float, string, etc and you have to specify datatype with variable while declaring.
    Java has block based scope.

    JAVASCRIPT :
    JavaScript is an object based programming language.
    JavaScript code run on browser only.
    JavaScript is interpreted.
    JavaScript code contains limited number of commands and features.
    JavaScript is text based , dynamic and weakly typed language.
    JavaScript has function based scope and object based context.

  7. #5
    Junior Member
    Join Date
    Mar 2017
    Location
    Delhi
    Posts
    244
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    The very first point between Java and JavaScript that is, JavaScript is not the part of Java Platform.

    Java is an Object-Oriented Programming Language (some people said a pure OOP Language) and JavaScript is an Object-Oriented Scripting Language.

    JavaScript code run only in browsers and Java applications run in browsers as well as virtual machines too.

    Both of that required different plug-ins.

    It is needed to compile the Java Code and JavaScript code is in text format.

  8. #6
    Junior Member
    Join Date
    Feb 2015
    Posts
    316
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Java and JavaScript are programming languages used to develop applications or features on a web page. While the programming code itself has some similarities, there are differences between them.

    The biggest difference is the type of applications they are used to create. Java programming is for applications that are either run from a computer desktop or initiated through a web page. They are standalone programs and open a separate program window in most cases. Without Java being installed, a computer cannot run Java applications. However, JavaScript is included with all modern browsers and as long as it is enabled will execute the JavaScript when the web page is loaded.

  9. #7
    Junior Member
    Join Date
    Sep 2016
    Posts
    335
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Java is OOP programming language while JavaScript is an OOP scripting language.
    Java Create application that run in virtual machine or browser while JavaScript code runs only on browser.
    If you see on server side both languages can be used, Java used technologies like Apache, JBoss and Websphere. For JavaScript servers Node.js has become a launch pad.
    Java is class-based , JavaScript is prototype-based.
    Java is distributed as compiled bytecode, JavaScript is distributed in its source code.

  10. #8
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    Key differences between Java and JavaScript: 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.

Bookmarks

Posting Permissions

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