Programming and Problem Solving with Java

(やまだぃちぅ) #1

(^12) | Introduction to Object-Oriented Programming
As noted earlier, standardized high-level languages allow you to write portable(or machine-
independent) code. As Figure 1.5 emphasizes, the same C++ application can be run on differ-
ent machines, whereas a program written in assembly language or machine
language is not portable from one computer to another. Because each computer
family has its own machine language, a machine language program written for
computer A may not run on computer B.
Java takes a somewhat different approach to achieve even greater portability.
Java source code is translated into a standard machine language calledBytecode.
Human thought
Natural language
(English, French, German, etc.)
High-level language
(C++, FORTRAN, Java, etc.)
Machine code
(computer)
Figure 1.4 Levels of Abstraction
Bytecode A standard
machine language into which
Java source code is compiled

Free download pdf