What is the difference between JavaScript and Java

+1 vote
Jun 29, 2018 in Java by sharth
• 3,370 points
784 views

1 answer to this question.

0 votes

image

This quote rightly explains that 2 totally different things cannot be compared.

Some of the major differences between Java and JavaScript are as follows:

Java:

· It is an OOP programming language

· Code is compiled before execution

· Runs on a virtual machine or a browser

· Static type checking

JavaScript:

· It is an OOP scripting language

· Runs on a browser ONLY

· Code is interpreted / Just in Time(JIT) compiled before execution

· Dynamic type checking

answered Jun 29, 2018 by Daisy
• 8,140 points

Related Questions In Java

0 votes
2 answers

What is the difference between Set and List in java?

List is an ordered sequence of elements. ...READ MORE

answered Apr 26, 2018 in Java by Akrati
• 3,190 points
63,360 views
0 votes
2 answers

What is the difference between getAttribute() and getParameter() in java?

getParameter() returns http request parameters. Those passed from ...READ MORE

answered Aug 28, 2019 in Java by Sirajul
• 59,230 points
22,551 views
0 votes
2 answers

What is the difference between Type List and type ArrayList in Java

By List, you actually tell, that your object ...READ MORE

answered Aug 28, 2019 in Java by Sirajul
• 59,230 points
2,567 views
0 votes
1 answer

What is the difference between getPath(), getAbsolutePath() and getCanonicalPath() in Java?

getPath() - returns a String which denotes the ...READ MORE

answered Jul 26, 2018 in Java by Mrunal
• 680 points
1,909 views
0 votes
1 answer

What is a name function in JavaScript & how to define it?

A named function declares a name as ...READ MORE

answered Mar 7, 2019 in Others by Frankie
• 9,830 points
4,677 views
0 votes
1 answer

What is $route service in AngularJs?

$route is used for deep-linking URLs to controllers ...READ MORE

answered Feb 10, 2020 in Angular by Niroj
• 82,840 points
1,256 views
0 votes
1 answer

What are the $route service Events provide in AngularJs?

hey, $route is used for deep-linking URLs to controllers ...READ MORE

answered Feb 10, 2020 in Angular by Niroj
• 82,840 points
1,059 views
0 votes
1 answer

Write a method

Hey, @MIH, You can follow this: public class ReverseNumber ...READ MORE

answered Jun 5, 2020 in Java by Gitika
• 65,770 points
695 views
0 votes
2 answers

What is the difference between implements and extends?

Extends : This is used to get attributes ...READ MORE

answered Aug 3, 2018 in Java by samarth295
• 2,220 points
16,218 views
0 votes
2 answers

What is the difference between = and equals()?

The equals() method compares the "value" inside String instances ...READ MORE

answered Aug 13, 2018 in Java by Daisy
• 8,140 points
1,398 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP