Logo en.artbmxmagazine.com

Differences between java and javascript

Anonim

Given the similarity of name they are usually considered as synonyms or very similar when there are appreciable differences among which it is worth noting: * Java is a programming language and JavaScript is not, although both share the same syntax.

  • JavaScript is not a compiled language. JavaScript is integrated directly into HTML pages and is interpreted (without being compiled) by the client (browser). In other words, the source program (web page) runs directly. JavaScript is object-based, while Java is an object-oriented programming language (OOP). JavaScript does not use usual classes, inheritances or techniques in the OOP. There is no declaration of variable types to use. JavaScript does this automatically. Object references are checked in real time during execution. In compiled languages ​​such as Java, this check is performed when compiled. JavaScript cannot (does not know) write to the hard disk (except cookies). Therefore it can be considered as a safe language on the Internet, in the sense that from the web pages,With JavaScript, you can't "play pranks."
Differences between java and javascript