Sunday, February 26, 2012

Different About Java and JavaScript

A common problem for developers is to confuse the two programming languages ​​Java and JavaScript. Although the two languages ​​share some common features, are widely used in general and animals in various applications.

Java is a programming language commonly used in Sun Microsystems to come out as a form of "write once, run anywhere" programmers. Java code that runs on a virtual machine, and a Java application without the developer of the different architectures and operating systems that can run the application in question will be distributed.

You can, however, a scripting language. Its sole purpose is that Web pages. When a browser loads the page, insert the JavaScript code in it. The code can change the look of the site. For example, the JavaScript used to create a menu, create the extension, with the mouse, or an art gallery, where changes in the image appear from time to time.


This difference is most evident in the libraries of the two languages. Java has a large standard library that is standardized in the Java standard. It enables Java developers in a wide range of tools to write code. Activate the standard library is much smaller and usually work with HTML web page.

In addition to confusing the two languages ​​is that Java can be used in a network in the form of Java applets. This is a small part of the website where the Java code is executed and displayed in the browser window. Java applets are used to advance the issues of the browser, for example, make a series of JavaScript is not nearly powerful enough to run a complex process, so that Java is used. This is where the benefits of platform-independent Java comes into play as the Web browser, Java plug-ins (and most do), the code is the same regardless of browser used. This may not be available to JavaScript, which is often used to be told differently in different browsers to ensure compatibility with various tricks.

And you can use even if the two web languages, JavaScript is much more important for web developers looking to learn. Simplicity also means that JavaScript be made quickly so that the little things you want to add a Web page will not be hampered by the Java virtual machine. This is one of the reasons why Java is not very useful on the Internet is slow. A Java applet requires the Java plug-in and the load is too great for all web projects, but mainly as flexible instruments, such as HTML5 are becoming increasingly popular on the web.

Java and JavaScript are two different programming languages. Each one of them, their use, but not interchangeable.


| Freeware File? |

  • Stumble This
  • Fav This With Technorati
  • Add To Del.icio.us
  • Digg This
  • Add To Facebook
  • Add To Yahoo