|
|
|
|
|
It is a common knowledge that Java language is well-suited for the Web because it is platform independent. A Java applet downloaded from a server could run on an Macintosh, UNIX workstation, or IBM PC. Java is an object-oriented language with many elements in common with the C++ language. It avoids the memory referencing problems they can introduce and thus facilitates the creation of safe applications. Java exists in three main forms: JavaScript code, Java applets, and Java applications.
You can embed JavaScript code into a page to control interaction on the page. The concept is similar to that of VBScript. JavaScript is not directly derived from Java, however, and writing a JavaScript script and a Java applet is considerably different. Java applets are programs created in Java that are then generated in a platform-neutral byte code format. You can download a Java applet as a separate file, and then a browser can launch that Java applet through special built-in software called a run-time interpreter. This run-time interpreter translates the generic byte codes of the applet file into specific actions executed by the computer. The third form of Java is a Java application. A Java application is like a standard application. It is generated in the byte format understood by a computer type. It can then run directly on computers of that type with no additional translation. An information about Java is available on the World Wide Web. A good place to start is the official Java page from Sun Microsystems at http://java.sun.com. The Java language is particularly well-suited for the Web because it is platform independent. A Java applet downloaded from a server, with appropriate run-time support in a browser, could run on an Apple Macintosh, UNIX workstation, or IBM pc. Java is an object-oriented language with many elements in common with the C++ language. However, it does not provide memory pointers for the programmer. This avoids the memory referencing problems they can introduce. As a result, Java facilitates the creation of stable, safe applications. You can think of Java as existing in three main forms: JavaScript code, Java applets, and Java applications. You can use the JavaScript form of this language for embedding code into a page and controlling interaction on the page. The concept is similar to that of VBScript,although the language and integration capabilities differ. JavaScript is not directly derived from Java, however, and writing a JavaScript script and a Java applet is |
|
|
|