|
Answer» JavaScript is a LIGHTWEIGHT and interpreted PROGRAMMING language that introduced in 1995 as LiveScript. Brendan Eich developed it and the language became an ECMA standard in 1997. Java is a programming language developed by James Gosling. It is a language used in my desktop application, web applications, games, etc. Java is a platform INDEPENDENT object-oriented language. The FOLLOWING is the DIFFERENCE between Java and JavaScript: Basis
| Java | JavaScript |
|---|
| Definition | Java is a programming language developed by James Gosling. It is a language used in my desktop application, web applications, games, etc. Java is a platform independent object-oriented language.
| JavaScript is a lightweight and interpreted programming language that introduced in 1995 as LiveScript. Brendan Eich developed it and the language became an ECMA standard in 1997. | | OOP | Java is an OOP programming language
| JavaScript is an OOP scripting language. | | Running on Browser | Java creates applications that run in a virtual machine or browser
| JavaScript code is run on a browser only. | | Compiled vs. Interpreted | Java Program is compiled.
| JavaScript scripts are Interpreted. | | Type Checking | Java has static type checking. The type of a variable is checked at compile-time.
| JavaScript has dynamic typing. The type safety is verified at runtime. | | Type of Variable | The type of variable should be specified.
| It is not required to specify the type of variable. |
|