Java Reference
In-Depth Information
The Java interpreter translates each bytecode instruction into a particular type of CPU
machine language and then executes the instruction. Thus, in the case of the Java
language, a different type of interpreter is needed for a particular type of CPU. However,
interpreters are programs that are simpler than compilers. Because the Java interpreter
translates one bytecode instruction at a time, Java programs run more slowly.
Program
Editor
Error
Compiler
No Error
Library
Bytecode
Loader
Interpreter
FIGURE 1-3 Processing a Java program
As a programmer, one of your primary concerns is with Step 1. That is, you must learn,
understand, and master the rules of the programming language to create source programs.
Programs are developed using an IDE. Well-known IDEs used to create programs in Java
include JBuilder (from Borland), CodeWarrior (Metrowerks), and jGrasp (Auburn
University). These IDEs contain an editor to create the program, a compiler to check
the program for syntax errors, a program to load the object codes of the resources used
from the IDE, and a program to execute the program. These IDEs are also quite user
friendly. When you compile your program, the compiler not only identifies the syntax
errors, but also typically suggests how to correct them.
Other software that can be used to develop Java programs include Eclipse, TextPad,
JCreator, BlueJ, and DrJava.
In Chapter 2, after being introduced to some basic elements of Java, you will see how a Java
program is created.
 
Search WWH ::




Custom Search