
InformationWeek SMB TechEncyclopedia
Result for: Java
An object-oriented programming language that is platform independent. Developed by Sun, Java is widely used on the Web for both client and server processing. Modeled after C++ and designed to run in limited memory, Java added programming enhancements such as "garbage collection," which automatically frees unused memory.
When a Java program is launched from a Web page, the program is called a Java "applet." When run without the Web browser on a user's machine, it is a Java "application." When running in a Web server, it is a Java "servlet."
Intermediate Bytecode
The source code of a Java program is compiled into an intermediate language called "bytecode." In order to run the bytecode, it must be compiled into machine code just before execution or a line at a time via the Java Virtual Machine (JVM) runtime engine. There are JVMs for all major hardware platforms, and this intermediate bytecode is what makes Java cross platform. See Java Virtual Machine and JIT compiler.
Java Vs. JavaScript
Java is a full-blown programming language, whereas JavaScript is a scripting language that is much more limited. JavaScript source code is not compiled into bytecode. It is embedded within an HTML page and is primarily used to manipulate elements on the page itself. For example, it is widely used to provide drop-down menus and other interactive events on the page. See JavaScript.
A Revolution?
Developed in 1991 as a language for embedded applications in set-top boxes and other consumer electronics, Java ignited a revolution when Sun transitioned it to the Web in 1994. Thus far, Java applets and applications have been mildly successful on the client, but Java on the server side has become very popular. See J2EE.
Write Once-Run Anywhere
Java embodies the "write once-run anywhere" model; the Holy Grail of computing for decades. For example, a Java servlet can be moved from a Unix server to a Windows server if both have the Java runtime engine installed. Sometimes, a little tweaking is necessary; sometimes a lot, but Java is closer to "write once-run anywhere" than previous development platforms. See Java platform, servlet, JSP, Java 2, Jini, network computer, CaffeineMark and caffeine based.
The following Java example of changing Fahrenheit to Celsius is rather wordy compared to the C example in this encyclopedia. Java is designed for GUI-based applications, and several extra lines of code are necessary here to allow input from a terminal.


Java Uses an Intermediate Language
Java source code is compiled into an intermediate language called "bytecode." The bytecode can be run in any hardware that has a Java Virtual Machine (JVM) for that machine platform. Thus, the "write once-run anywhere" concept.

Java Runs on Clients and Servers
When a Java program has been called by a Web page from the client machine, it is dubbed an "applet." When it runs on the server, it is known as a "servlet." When running stand alone in a user's computer, it is a Java "application."

When a Java program is launched from a Web page, the program is called a Java "applet." When run without the Web browser on a user's machine, it is a Java "application." When running in a Web server, it is a Java "servlet."
Intermediate Bytecode
The source code of a Java program is compiled into an intermediate language called "bytecode." In order to run the bytecode, it must be compiled into machine code just before execution or a line at a time via the Java Virtual Machine (JVM) runtime engine. There are JVMs for all major hardware platforms, and this intermediate bytecode is what makes Java cross platform. See Java Virtual Machine and JIT compiler.
Java Vs. JavaScript
Java is a full-blown programming language, whereas JavaScript is a scripting language that is much more limited. JavaScript source code is not compiled into bytecode. It is embedded within an HTML page and is primarily used to manipulate elements on the page itself. For example, it is widely used to provide drop-down menus and other interactive events on the page. See JavaScript.
Developed in 1991 as a language for embedded applications in set-top boxes and other consumer electronics, Java ignited a revolution when Sun transitioned it to the Web in 1994. Thus far, Java applets and applications have been mildly successful on the client, but Java on the server side has become very popular. See J2EE.
Write Once-Run Anywhere
Java embodies the "write once-run anywhere" model; the Holy Grail of computing for decades. For example, a Java servlet can be moved from a Unix server to a Windows server if both have the Java runtime engine installed. Sometimes, a little tweaking is necessary; sometimes a lot, but Java is closer to "write once-run anywhere" than previous development platforms. See Java platform, servlet, JSP, Java 2, Jini, network computer, CaffeineMark and caffeine based.
The following Java example of changing Fahrenheit to Celsius is rather wordy compared to the C example in this encyclopedia. Java is designed for GUI-based applications, and several extra lines of code are necessary here to allow input from a terminal.
import java.io.*;
class Convert {
public static void main(String[]args)
throws IOException {
float fahr;
StreamTokenizer in=new StreamTokenizer(new
InputStreamReader(System.in));
System.out.print("Enter Fahrenheit ");
in.nextToken();
fahr = (float) in.nval;
System.out.println ("Celsius is " +
(fahr-32)*5/9);
}
}
Terms similiar to your search
- Entries before Java
- Japanese Electronic Industry Development Assn.
- Japanese PC market
- JAR
- Jason
- Jasper
- Entries after Java
- Java 2
- Java 2 Standard Edition
- Java applet
- Java application
- Java Card
Define another IT term
THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
Copyright (©) 1981-2007 The Computer Language Company Inc All rights reserved.
Find pre-screened vendors to grow your business
Get key info on the products you need
- Phone Systems Guide - What kind of phone system is right for your business
- Web Design Guide - What to look for in a Web designer
- Merchant Services Guide - Credit card processing and more
- Online Marketing Guide - Leverage the Net to market your business
- Alternative Financing Guide - How to find the cash your business needs
- View all guides
IW SMB White Papers
Check out the FREE
InformationWeek SMB email newsletter!
InformationWeek SMB email newsletter!
Browse by Category
IW SMB Tech
Term Of Day:
Boost your tech
vocabulary!
InformationWeek SMB's
TechEncyclopedia
defines more than
20,000 IT terms.
FREE Technology Services Locator!
Search our database of 200,000 solution- provider locations by business activity, technology, vertical market, and customer size. Find a technology partner NOW.
go




