Java’s Lineage
Java is related to
C++, which is a direct descendent of C. Much of the character of Java is
inherited from these two languages. From C, Java derives its syntax. Many of
Java’s object-oriented features were influenced by C++. In fact, several of
Java’s defining characteristics come from—or are responses to—its predecessors.
The Creation of Java
Java is a high-level programming
language originally developed by Sun Microsystems and released in 1995. Java
runs on a variety of platforms, such as Windows, Mac OS, and the various
versions of UNIX. This tutorial gives a complete understanding of Java.
The Internet helped
catapult Java to the forefront of programming, and Java, in turn, has had a
profound effect on the Internet. The reason for this is quite simple: Java
expands the universe of objects that can move about freely in cyberspace.
Java Applets and Applications
Java can be used to
create two types of programs: applications and applets. An application is
a program that runs on your computer, under the operating system of that
computer. That is, an application created by Java is more or less like one
created using C or C++. When used to create applications, Java is not much
different from any other computer language. Rather, it is Java’s ability to
create applets that makes it important. An applet is an application
designed to be transmitted over the Internet and executed by a Java-compatible
Web browser. An applet is actually a tiny Java program, dynamically downloaded
across the network, just like an image, sound file, or video clip. The
important difference is that an applet is an intelligent program, not
just an animation or media file. In other words, an applet is a program that
can react to user input and dynamically change—not just run the same animation
or sound over and over.
Java’s Magic: The Bytecode
Bytecode
is a highly optimized set of instructions designed to be
executed by the Java run-time system, which is called the Java Virtual
Machine (JVM). That is, in its standard form, the JVM is an interpreter
for bytecode. Translating a Java program into bytecode helps makes it much
easier to run a program in a wide variety of environments. The reason is
straightforward: only the JVM needs to be implemented for each platform.
No comments:
Post a Comment