FEATURED VIDEO

SLIDE SHOWS
The chip giant adds new remote management, encryption and anti-theft tools baked right into next-gen Intel Core vPro processors for commercial desktops and notebooks.
The long-awaited iPad has arrived. But here are 12 other tablet devices that will take aim at Apple this year as the suddenly crowded tablet PC market heats up.
Going green was the rage of 2009, and the buzz in 2010 isn't letting up. Manufacturers are responding to increased demands from their white box makers for more eco-friendly components.
INSIDE CHANNELWEB

Results found for: Java
Printer Print This Page

Image Friendly
techweb
Java
techweb
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.

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);
}
}







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."









Search For Java On ChannelWeb

Find the latest news and information on Java from across the Channelweb Network of IT Web sites.


techweb
temrs similiar to your header
Entries before Java
techweb
techweb Japanese Electronic Industry Development Assn.
techweb Japanese PC market
techweb JAR
techweb Jason
techweb Jasper
techweb Entries after Java
techweb
techweb Java 2
techweb Java 2 Standard Edition
techweb Java applet
techweb Java application
techweb Java Card
techweb
define another it term
techweb techweb

techweb
Or get a random definition
techweb
copyright THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.

Copyright (©) 1981-2008 The Computer Language Company
Inc All rights reserved.
Media Kits | Reprints | Privacy Statement | Copyright © 2010 United Business Media LLC | Terms of Service
CRN Logo ChannelWeb Logo CRN Logo CRNTech Logo Vision Events XChange IPED
ADVERTISEMENT




CHANNEL SERVICES >>