8/04/2013

Java and Javascript are not one in the same

By their names, the concept of Java and Javascript being one in the same is a very straight forward and easy mistake to make. While they both share aspects in the way they are written and Syntax coded, they actually come from different backgrounds and are deployed in different ways.

Java, created by Sun Microsystems (Now Oracle)  can be designed to be a stand alone programming language, and actually is a core element in the coding of the Android Operating System.  It is based on what is known as a Object Oriented Programming language, and the results of coding are referred to as "Standalone Applications".  Java is also a Machine Language, which means that prior to being ran it has to be compiled.

JavaScript, on the other hand, was created by the Web Browser company Netscape (now part of the AOL  which was spun off as its own company following a failed merger with Time Warner Communications) and actually is written in basic Text (any text editor can be used to write JavaScript code so long as the file extension is .JS).  the information in the .JS file is then linked into the HTML code and called upon by the browser, compiling at the time of deployment.  Many consider JavaScript a distant cousin to Java.

Due to security issues in the Java environment and the constant possibility of Java Crashes, the programming language has been falling out of favour with many, including the US Department of Homeland Security who have classified Java as an exploitable risk accessible to Hackers.  This of course causes problems for Web Developers as many end users of computers can get confused and disable JavaScript when warned to disable Java.  Disabling JavaScript can result in some some websites being unable to display features like image float over zooming and pop up windows, some of which can instead be coded using CSS, thus allowing content to still be seen even if the user has disabled Java, JavaScript or Both.

No comments:

Post a Comment