JAVA vs JAVASCRIPT

JAVA JAVASCRIPT
*Java is an object oriented programming language . *JavaScript is an object based programming language .
*Java creates application that can run in a virtual machine or browser . *JavaScript code run on browser only.
*Java code is compiled . JavaScript is interpreted .
*Java code allows programmer full functionality and needs to be compiled. *JavaScript code contains limited number of commands and features.
*The first name of Java was OAK, and was developed by James Gostling, Sun MicroSystems . *JavaScript was earlier known as ECMAScript and was developed by ** Brendan Eich , Netscape .
*Java is high-level, static ,compiled and strongly type language. *JavaScript is text based , dynamic and weakly typed language.
*In Java there is different datatypes like int, float, string, etc and you have to specify datatype with variable while declaring. *In JavaScript there is var keyword is used to define variable and according to value it takes datatype of that variable automatically.
*Java has block based scope. *JavaScript has function based scope and object based context.
8 Likes

Please be more elaborate. This would help a lot of newbies to quickly understand the difference. Thanks in advance.

2 Likes