java
464 ResultsDictionary
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...
Dictionary
Definition: 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 reasonably successful on the client (the user's machine), Java on the server became very popular.
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; the Holy Grail of computing for decades. For example, a Java servlet can be moved from a Unix server to a Windows server. Sometimes, a little tweaking is necessary; sometimes a lot, but Java is closer to "write once-run anywhere" than previous development platforms.
This is accomplished by compiling Java source code into an intermediate language called "bytecode." In order to run the bytecode, it is either entirely compiled into machine code and then run or executed a line at a time via the Java interpreter, which is a runtime engine known as the "Java Virtual Machine" (JVM). There are JVMs for all major hardware platforms, and this intermediate bytecode is what makes Java "cross platform," "platform independent" and "write once-run anywhere," all meaning the same thing. When users are asked to update Java from time to time, it is the Java runtime engine that is being updated (see Java Virtual Machine).
Java Vs. JavaScript
Java is not JavaScript. To understand the differences, see JavaScript. For more on Java development environments, see Java platform. See servlet, JSP, Jini, 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.\"
THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2010 The Computer Language Company Inc. All rights reserved.
Sponsored White Papers, Webcasts & Resources
-
Why Preventing Fragmentation Is Good for Your Budget
Anything that slows down data subtracts from your bottom line. Instead of using two-decades-old technology to defrag after the fact, why not use higher level technology from Diskeeper that...
-
Google kicks Oracle in its patent teeth
Oracle loses its patent claims and so Google has almost completely defeated Oracle in its vain attempts to squeeze an intellectual property payoff from Google and Android.
-
After mixed copyright win over Google, Oracle looks towards patents
The next phase of the trial will consider whether or not Google violated two patents associated with Java.
-
Oracle-Google trial could result in partial verdict or even mistrial
The court is mulling the possible options if the jury in the Oracle-Google trial cannot come to a unanimous verdict on charges of copyright infringement.
-
Oracle, Google lawyers split hairs over more jury instructions
UPDATE #2: The jury came back with another question, suggesting that they might be not be so close to a verdict and back at square one.
-
Xamarin's port of Android to Microsoft's C#: Five questions (and answers)
Xamarin chief Miguel de Icaza answers five questions about XobotOS, the skunkworks project to port Android to C#.
-
-
Jury questions in Google-Oracle trial hint at copyright infringement
The jury returned with more questions in the Oracle-Google trial, which suggest that they could be on the road to finding for copyright infringement.
-
Oracle, Google attorneys have spat over jury instructions
Even as we wait for a verdict on copyrights, Oracle and Google's lawyers are still arguing about jury instructions as well as looking forward to the next phase of the trial.
-
Cross-platform malware exploits Java to attack PCs and Macs
The same Java vulnerability used in the infamous Flashback malware is now being used as an attack vector for a single piece of malware that can infect both Windows and Mac OS X computers.
-
Google defends fair use of Java on Android in closing statements
In closing statements, Google's counsel reasserts that Google used Java APIs in a fair use manner for Android, transforming them into a full smartphone stack.
-
Oracle vs. Google: Dead lawsuit walking
Oracle's case is as dead now as when it began. Like SCO with its insane attacks against IBM and Linux, Oracle doesn't have a leg to stand on in its Google litigation.
-
Flashback malware exposes big gaps in Apple security response
A pair of high-profile malware attacks have given Apple a crash course in security response. Based on recent actions, 70 million current Mac owners have a right to expect much more from Apple than...
-
New data shows older OS X versions more susceptible to malware
New details about the extent of the Mac-specific Flashback malware epidemic emerged today. The Russian security firm that has been actively investigating infected Macs found older versions of OS X...
-
Oracle: Google wanted easy route to Android revenue with Java
In rebuttal arguments, Oracle's lawyers try to convey that Google was lazy and taking the easy way out by using Java APIs when developing Android.
-
Oracle tries to rebound with help from Sun co-founder
Oracle tries to use the testimony of Sun's co-founder to essentially null everything said by former CEO Jonathan Schwartz on Thursday morning.
-
Trial: Former Sun CEO gets into catty fight with Oracle lawyer
Oracle's lawyers tried to redeem their case after the former Sun CEO's initial testimony in the IP case against Google.
-
Former Sun CEO: We would have paid Google for Java phone
In what could be a major blow to Oracle's case against Google, former Sun CEO Jonathan Schwartz defends openness of Java language and APIs at court.
-
Closing statements in Oracle-Google trial expected on Monday
The copyright portion of the Oracle-Google trial is wrapping up soon, and Oracle is already looking to add in another patent for the next round at court.
-
Trial: Android chief on why Java was picked for Android
As Google continues to present its side of the story in the copyright legal battle against Oracle, lawyers recalled Android chief Andy Rubin to the stand.
-
A nail in Oracle's Java coffin - aka, "That's why Google hired Timothy Bray"
Sure, Tim's a great guy, but this was a great piece of Google strategy as well.
-
Eric Schmidt talks Android, search revenue in Oracle-Google IP trial
Google's executive chairman, Eric Schmidt, testifies at the U.S. District court as Oracle prepares to wrap up its argument in the copyrights portion of the intellectual property trial.
The best of ZDNet, delivered
ZDNet Newsletters
Get the best of ZDNet delivered straight to your inbox




