JS Coding Questions Logo
JS Coding Questions
#290💼 Interview

What is the difference between java and javascript

Advertisement

728x90

Both are totally unrelated programming languages and no relation between them. Java is statically typed, compiled, runs on its own VM. Whereas Javascript is dynamically typed, interpreted, and runs in a browser and nodejs environments. Let's see the major differences in a tabular format,

| Feature | Java | JavaScript |

|---- | ---- | -----

| Typed | It's a strongly typed language | It's a dynamic typed language |

| Paradigm | Object oriented programming | Prototype based programming |

| Scoping | Block scoped | Function-scoped, block scoped since ES6 |

| Concurrency | Thread based | event based |

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 34

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
290of476