Thursday, July 27, 2017

JavaScript e Java


Não confunda JavaScript com Java, eles são línguas completamente diferentes.

----

Even though Java and JavaScript both are object-oriented languages, are commonly used on the Web, and have syntaxes that resemble the syntax of C, they are actually very different languages. Java is a class-based, object-oriented language, whereas JavaScript is prototype based. Java is strongly typed, whereas JavaScript is weakly typed. Java is compiled into platform-independent bytecode before execution, while JavaScript source code is generally interpreted directly by the browser.
Yet, interestingly, the inherent promise of Java applets[i] seems to have weakened. The idea was to bring a cross-platform development environment with security and performance to a diverse device world, but JavaScript, as opposed to Java, has met this now. Java applets continue to live on and so we take a few pages to delve into them and how they interact with JavaScript, but given the current trends, their future looks somewhat dim.


Reference:
JavaScript - Thomas Powell & Fritz Schneider.


[i] You can find out more about Java once you know it is available by accessing a Java applet included in the
page. You can even determine what type of Java Virtual Machine is supported. In order to do this, you will have to access the public methods and properties of a Java applet.



No comments:

Post a Comment

Remote Hybrid and Office work