|
|

This is only a preview of the paper Click here to register and get the full text. Existing members click here to login
|
|
|
Java Origin
The Java programming language was originally designed for the burgeoning world of network programming. ... The subsequent notion of running a Java program inside a browser window as an applet certainly attracted a lot of web developers to Java: here was a chance to get one version of executable code onto a client machine of almost any operating system. At the same time, a Java applet could add some zing to the otherwise flat and fairly crude HTML publishing medium. ...
Java Purpose
In reality, a lot of applets that grace public web pages these days dont have much to do with networking. ... I wonder, though, about the heavy reliance on Java applets for so much animation on a web page. If Java had been intended to be such an animation-friendly universe, wouldnt double-buffered graphics for smooth paint-clear paint sequences be automatic, rather than require extra code? Even with my reservations about many of the ways developers are using Java applets, they do have a place today in web application development, especially when the applets play to Javas strength as a network-oriented programming language.
Java Application
The Java language provides many language features that make it preferable to C or C++ for modern software development. ... In addition to these features, Java enforces a common programming style by removing the capability to slip outside the class- and object-oriented programming paradigm to develop C-style function-oriented programs.
Java source code is a little more portable than C-based languages. ... Java defines the size of basic types for all implementations; an int on one system is the same size (and can represent the same range of values) as on every other system. ... Although C and C++ are supported on all platforms that support Java, these languages are not supported in a platform-independent manner. ...
Java strengths and weaknesses
Java has gained enormous popularity since it first appeared. ... Java was chosen as the programming language for network computers (NC) and has been perceived as a universal front end for the enterprise database. As stated in Java language white paper by Sun Microsystems: "Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture neutral, portable, multithreaded, and dynamic."
No language is simple, but Java considered a much simpler and easy to use object-oriented programming language when compared to the popular programming language, C++. Partially modeled after C++, Java has replaced the complexity of multiple inheritance in C++ with a simple structure called interface, and also has eliminated the use of pointers. The reason that why Java is much simpler than C++ is because Java uses automatic memory allocation and garbage collection where else C++ requires the programmer to allocate memory and to collect garbage. Also, the number of language constructs in Java is small for such a powerful language. The clean syntax makes Java programs easy to write and read. Also, Java is Object-oriented. ... Java is object-oriented because programming in Java is centered on creating objects, manipulating objects, and making objects work together.
One of the most compelling reasons to move to Java is its platform independence. Java runs on most major hardware and software platforms, including Windows 95 and NT, the Macintosh, and several varieties of UNIX. Java applets are supported by all Java-
Battle 4
compatible browsers. By moving existing software to Java, you are able to make it instantly compatible with these software platforms. JAVA programs become more portable. ... Also, Java can run on any platform without having to be recompiled. ... It goes on even further to ensure that there are no platform-specific features on the Java language specification. ... In Java, the size of the integer is the same on every platform, as is the behavior of arithmetic. Having a fixed size for numbers makes Java programs portable. The Java environment itself is portable to new hardware and operating systems, and in fact, the Java compiler itself is written in Java.
The main disadvantage of Java is speed. ... As mentioned above, once Java code is compiled into byte code, an interpreter called a Java Virtual Machine, specifically designed for a computer architecture, runs the program. ... "Java, being an interpreted system, is currently an order of magnitude slower than C." (Just Java, 302). Unlike natively compiled code, which is a series of instructions that correlate directly to a microprocessors instruction set, an interpreter must first translate the Java binary code into the equivalent microprocessor instruction. ...
JavaScript Purpose
Java and JavaScript is not the same thing. JavaScript was designed to resemble Java, which in turn looks a lot like C and C++. The difference is that Java was built as a general-purpose object language, while JavaScript is intended to provide a quicker and
Battle 6
simpler language for enhancing Web pages and servers. ... Scripts embedded in the document also start running right away, and then often do their job faster than a Java applet equivalent. ...
Battle 7
Navigator 3 gave the chance to blend JavaScript and Java together when LiveConnect made its appearance.
Approximate Word count = 4180 Approximate Pages = 16.7 (250 words per page double spaced)
|
|
|

|
|
|