Alan Freedman -- The Computer Language Company - Computer Desktop Encyclopedia
Computer Desktop Encyclopedia
Longest-Running Tech Reference on the Planet

A CDE Definition

You'll love The Computer Desktop Encyclopedia (CDE) for Tech Term of the Day (TTOD)

LOOK UP ANOTHER TERM


HotJava

An earlier Web browser from Sun that was the first to support the Java programming language, also developed by Sun. HotJava executed Java code embedded directly within Web documents. See Java.



Java

An object-oriented programming language from Oracle that is platform independent. Developed by Sun in the early 1990s (Oracle acquired Sun in 2010), and modeled after C++, Java was originally designed for embedded applications in set-top boxes and other consumer electronics. Java ignited a revolution when Sun transitioned it to the Web in 1994, and although Java has been employed as a client program on users' computers, Java server applications have been much more popular.

Applet, App and Servlet
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."

Write Once-Run Anywhere
Java embodies the "write once-run anywhere" model. For example, a Java program can be moved from a Unix server to a Windows server with minimal modification most of the time. This is accomplished because Java source code is first compiled into an intermediate "bytecode" language. In order to run the bytecode, it is either compiled into machine code and then run or executed a line at a time via the Java interpreter, a runtime engine known as the "Java Virtual Machine" (JVM). There are JVMs for all major hardware platforms, which is what makes Java cross platform. When users are notified to update Java in their computers, they are updating the runtime engine (see Java Virtual Machine). See Java platform, servlet, JSP, Jini, CaffeineMark and caffeine based.

Java Vs. JavaScript
Although they share a similar-sounding name, Java is not JavaScript (for the difference, see JavaScript).

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










Personal Use Only

Before/After Your Search Term
BeforeAfter
hot swaphotkey
hot swappablehotlist
hot topicsHotmail
Hot topics and trendsHotMetal PRO
hot trendshotspot
hot walletHotspot 2.0
hotelinghotspot detector
hotellingHotSpot engine
hotfixhotspot feature
hotfolderhotspot finder

Terms By Topic
Click any of the following categories for a list of fundamental terms.
Computer Words You Gotta KnowSystem design
Job categoriesUnix/Linux
Interesting stuffPersonal computers
InternetIndustrial Automation/Process Control
Communications & networkingAssociations/Standards organizations
HistoryDesktop publishing
Audio/VideoGraphics
MainframesSecurity
ProgrammingHealthcare IT
System design