Log In    |    Knowledge Base    |    4D Home
Tech Tip: The 4D Ajax Framework is based upon JavaScript, not Java
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.0 | PLATFORM: Mac & Win
Published On: December 5, 2007

PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.0, 1.1 and 1.2

The 4D Ajax Framework is based upon JavaScript, not Java. Folks are getting confused about these two similarly named, yet completely different technologies. An explanation of each may help clear up any confusion.

JavaScript: Released in 1995 by Netscape, JavaScript, originally called "Live Script" to reflect its dynamic nature, is the most popular web programming language to date. "Live Script" was renamed to JavaScript. JavaScript provides a rich interactive web experience and is the very core of the Web 2.0 revolution. No compiler is needed for JavaScript as it is interpreted by the web browser.

Here is a screenshot of some example JavaScript code:

Java: Released in approximately 1991, by Sun Microsystems, Java has many facets. Besides creation of standard desktop applications, you can use Java to create interactive websites as well. More information can be found at

Here is a screenshot of some example Java code:

The major differences:
- Unlike JavaScript, Java based applications can stand on their own versus needing to be embedded into a web page.
- Java must be compiled before being put on the web. JavaScript is interpreted at runtime.

JavaScript and Java, despite naming similarities, are different technologies.

For the latest information the 4D Ajax Framework please see the Daxipedia: