|
|
|
|
Differene Between Java &
Javascript
JavaScript is not java. Despite the name, JavaScript and Java have almost nothing to do with one another. java is a full-featured programming language developed and marketed by Sun Microsystems. With Java, a descendant of the C and C++ programming languages, programmers can create entire applications and control consumer electronic devices, such as C and C++ are used. Unlike those languages, Java holds out the promise of cross-platform compatibility, that is, a programmer should be able to write one Java program that could then run on any kind of machine, whether that machine is running Windows 95 or NT; the Mac OS, or Unix. In practice, java hasn't fully realized that dream, due in no small part to bickering between Sun and Microsoft as to the direction of the language. Microsoft got involved because they want to integrate Java into Windows in their own way (a way that Sun says would make Java work one way on Windows, and another way on other machines, thereby defeating Java's main purpose). Java's main use is to create applets, small programs that download over the Internet and run inside Web browsers. Because of Java's cross-platform nature, these applets should run identically on any java-enabled browser (a browser that has the Java engine built-in). You embed java applets in your Web pages using the APPLET HTML tag. When the browser sees the APPLET tag, it downloads the Java applet from the server, and the applet then runs in the area of the screen specified in the tag. When the user moves on to another Web page, the applet is flushed from the computer's memory. JavaScript can interact with a Java applet on a Web page. The combination of JavaScript and Java enables you to provide a powerful and interesting experience to your site's users. |