Magento Expert Forum - Improve your Magento experience

Results 1 to 6 of 6

Enumerate the differences between Java and JavaScript?

  1. #1

  2. #2
    Junior Member
    Join Date
    Oct 2016
    Posts
    358
    Thanks
    0
    Thanked 2 Times in 2 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
    33
    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 Gifting | Corporate Gifts in Delhi | Corporate Gifts in Noida

  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
    441
    Thanks
    0
    Thanked 7 Times in 7 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
    186
    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
    115
    Thanks
    0
    Thanked 2 Times in 2 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.

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
  •