Essays24.com - Term Papers and Free Essays
Search

Compare And Contrast Java And Javascript

Essay by   •  November 10, 2010  •  716 Words (3 Pages)  •  1,815 Views

Essay Preview: Compare And Contrast Java And Javascript

1 rating(s)
Report this essay
Page 1 of 3

Compare and Contrast Java and JavaScript

WEB/420 Web Programming II

Mr. Caleb Green

January 31, 2007

TEAMS MEMBER: Gladys Burton, Kassindra Davidson, Corine Holmes,

Christina Kennedy, James Mustin, Josh Sheppard, Lura Wade

Contrary to a vast amount of opinions and thinking Java and JavaScript are NOT the same programming languages. The JavaScript language resembles Java in certain ways, but does not require the long typing and strong type checking that Java requires JavaScript supports most of Java's expression syntax and basic control flow constructs. In contrast, Java's compile-time system of classes built by declarations, JavaScript supports a run-time system based on a small number of data types representing numeric, Boolean, and string values. It has a simple instance-based object model that still provides significant capabilities.

The only thing Java and JavaScript have in common is their names. JavaScript was originally name Live Script Netscape created JavaScript to allow control of Java applets on web pages but ironically this evolved into a means for creating programs on websites like pop-up windows, drop-down menus, and additional things. JavaScript is not complied. Java Script to put it simply can be described as an important ingredient to one's favorite recipe. JavaScript is simply mixed right in with the HTML. Java would be used for highly interactive things such as putting an arcade system game on the web. JavaScript, however, would be used more to enhance the functionality of a web page as you can attach bits of code to various objects on your page. (Hansen,D).

While Java is drastically more difficult than JavaScript and is not limited to just the internet, Java is quite popular with professional developers. One of Java's best features is portability. Java is independent, one would have no problems applying Java to any PC the language should be the same no matter what one learns Java on. As a matter of fact, one should be able to take the source code for the classes and applets one writes on PC and compiling them. Java would be used for highly interactive things such as putting an arcade style game on the web.

The JavaScript supports functions, without any unique declarative requirements. These functions can be properties of objects, executing as a lose typed methods.

Java is extension language designed, for fast execution and type safety. Type safety is reflected by begin unable to cast a Java into an object reference or to get at private memory by corrupting Java byte codes.

In contrast, the article entitled "Java versus JavaScript" at the website (Hansen, D) states "JavaScript descends in spirit from a line smaller, dynamically typed language like HperTalk and dBases." These languages have the ability to recommend programming tools to an extremely

...

...

Download as:   txt (4.3 Kb)   pdf (77.2 Kb)   docx (10.4 Kb)  
Continue for 2 more pages »
Only available on Essays24.com
Citation Generator

(2010, 11). Compare And Contrast Java And Javascript. Essays24.com. Retrieved 11, 2010, from https://www.essays24.com/essay/Compare-And-Contrast-Java-And-Javascript/9817.html

"Compare And Contrast Java And Javascript" Essays24.com. 11 2010. 2010. 11 2010 <https://www.essays24.com/essay/Compare-And-Contrast-Java-And-Javascript/9817.html>.

"Compare And Contrast Java And Javascript." Essays24.com. Essays24.com, 11 2010. Web. 11 2010. <https://www.essays24.com/essay/Compare-And-Contrast-Java-And-Javascript/9817.html>.

"Compare And Contrast Java And Javascript." Essays24.com. 11, 2010. Accessed 11, 2010. https://www.essays24.com/essay/Compare-And-Contrast-Java-And-Javascript/9817.html.