Difference between java and Javascript

Java vs Javascript



JavaScript is a client-side scripting language. JavaScript is not pure object-oriented, but based on object-oriented, it is lightweight and most commonly used for web applications that allow client-side scripts to interact with the user and create dynamic web pages. JavaScript programming language developed by Netscape

JavaScript does not have the ability to create stand-alone applications. JavaScript is implemented using its statements that are placed within the script open and close tag like in the below example.

Example 1 :

Javascript Example

Example 2 :

var a = 10

var b = 10;

c = a + b;


Output :



 Java stands for just another vouge approach (Java Full Form:- founded from research), Java is the programming technology, Which is based on pure object-oriented open-source language, Also used for web and stand-alone application.

Java is the open-source programming language that was originally evolved by Sun Microsystems which was originated by James Gosling and released in 1995 as a core component of Sun Microsystems' Java platform.

Example 1 :

Java Example

Example 2 :

 Class Gomehere{
    public static void main(String[] args){
      int a = 10;
      int b = 10;
      int c = a +b;

Output : 


 What is the difference between java and Javascript: -



Java is an object-oriented programming language. Javascript is an object-based scripting language.
Java was developed at Sun Microsystems in 1995. Javascript was developed by Netscape in 1995.
Java code can be run in any virtual machine in addition to a web application. Javascript code is written for the web application.
Java is a standalone language. Javascript code is maintained inside a web page.
Java programs require more memory. Javascript is lightweight.
Java objects are class-based. Javascript objects are prototype-based.
Java supports multi-threading  Javascript doesn't support  multi-threading 
The functions definition required return type in Java The functions definition doesn't require return type in Javascript
Java code is very complex to write Javascript code is easy to write.


In the above, we can see the difference between java and javascript in tabular form, and it would also help in examination and interview and after preparation, anyone can easily explain the difference between javascript and java.


About author

Author:- Mukesh Pant

Mukesh Pant

Founder of GOMEHERE and exploring new ideas in multiple areas like technology, programming, travel, sport, utility, and many more for the audience to solve their problems. Also, keep in touch by email mrpant90@gmail.com

Leave a Comments

Scroll to Top