Difference between java and JavaScript

Due to the name of JavaScript as java, people think that JavaScript is a part of Java platform but Java is completely different from JavaScript. Java and JavaScript have the following differences: –

Difference between java and JavaScript


Java Script

1. Java is an OOP programming language.

1. JavaScript is an OOP scripting language.

2. Java code runs in both JVM and browser

2. JavaScript runs only in browser.

3. Java code is complicated and difficult

3. JavaScript code is easy and not complicated.

4. Java is used to create stand-alone and live applications using the applet.

4. JavaScript is used to create dynamic web pages with HTML.

5.The Java code has to be compiled.

5. It can be run in the browser without being compiled.

6. Java supports fewer platforms than Javascript.

6. JavaScript supports more platforms than Java.

7. Java’s objects are based on the class

7. while JavaScript is based on the prototype.

8. Java is static typed language.

8.while JavaScript is dynamic typed language.

9. Java is a stand-alone language, it does not require any other language.

9. JavaScript is not a stand-alone language. It is used with HTML.

Also read:-

12 thoughts on “Difference between java and JavaScript”

  1. It’s the best time to make some plans for the longer term and it’s
    time to be happy. I’ve read this put up and if I may just
    I wish to recommend you some attention-grabbing issues or tips.
    Maybe you can write subsequent articles regarding this article.
    I want to read even more things about it!

  2. Thanks for your marvelous posting! I definitely enjoyed reading it, you are a great author.
    I will make sure to bookmark your blog and may come back at some point.

    I want to encourage you to continue your great writing, have a nice

Leave a Reply

Your email address will not be published. Required fields are marked *