What is the difference between java and Javascript?

Posted by Andre Scott | Updated on

What is the difference between java and Javascript?

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:

FeatureJavaJavaScript
TypedIt’s a strongly typed languageIt’s a dynamic typed language
ParadigmObject oriented programmingPrototype based programming
ScopingBlock scopedFunction-scoped
ConcurrencyThread basedevent based
MemoryUses more memoryUses less memory. Hence it will be used for web pages

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers