OPPapers.com Essay Index >> Technology >> Javavsjavascript
We have many free term papers and essays on Javavsjavascript. We also have a wide variety of research papers and book reports available to you for free. You can browse our collection of term papers or use our search engine.
Javavsjavascript Abstract The following research paper is written with the intent to give the reader information on the differences between JavaScript, Java and
Submitted by anywho78 on May 19, 2008
Category: Technology
Words: 2461 | Pages: 10
Views: 164
Popularity Rank: 84,840
Average Member Grade: N/A (Add a Comment / Grade this Paper)
Abstract
The following research paper is written with the intent to give the reader information on the differences between JavaScript, Java and Java Applet and the usage of multi-media for web sites.
Research Results
Java and JavaScript Compare and Contrast
JavaScript at first glance looks like Java. The major difference is that JavaScript does not have Java's static typing and strong type checking. The basic control flow and syntax of Java are supported by JavaScript. JavaScript supports a run-time system based on a small number of data types representing numeric, Boolean, and string values, unlike Java's compile-time system of classes built by declarations. JavaScript supports functions so those functions can be properties of objects, executing as loosely typed methods.
JavaScript complements Java by exposing useful properties of Java applets to script authors. JavaScript statements can get and set exposed properties to query the state or alter the performance of an applet or plug-in. Java is an extension language designed, in particular, for fast execution and type safety. Type safety is reflected by being unable to cast a Java “int” into an object reference or to get at private memory by corrupting Java byte codes.
Java programs consist of classes and their methods and Java's requirements for declaring classes, writing methods, and ensuring type safety make programming more complex than JavaScript authoring. Java's inheritance and strong typing also tend to require tightly coupled object hierarchies. JavaScript on the other hand, descends in spirit from a line of smaller, dynamically typed languages like HyperTalk and dBASE. The other languages offer programming tools for a much wider audience because of easier syntax, specialized built-in functionality, and minimal requirements for object creation.
The following table compares and contrasts JavaScript and Java (Java Script...
You must Login to view the entire paper.
If you are not a member yet, Sign Up for free!