Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of...
-
Upload
anastasia-dalton -
Category
Documents
-
view
221 -
download
0
description
Transcript of Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of...
![Page 1: Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of instructions designed to be executed by the Java.](https://reader036.fdocuments.us/reader036/viewer/2022082415/5a4d1b157f8b9ab059991632/html5/thumbnails/1.jpg)
Getting Started With JavaSeptember 22, 2010
![Page 2: Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of instructions designed to be executed by the Java.](https://reader036.fdocuments.us/reader036/viewer/2022082415/5a4d1b157f8b9ab059991632/html5/thumbnails/2.jpg)
Java Bytecode Bytecode: is a highly optimized set of
instructions designed to be executed by the Java run-time system (JVM)
(The JVM is an interpreter for bytecode)
![Page 3: Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of instructions designed to be executed by the Java.](https://reader036.fdocuments.us/reader036/viewer/2022082415/5a4d1b157f8b9ab059991632/html5/thumbnails/3.jpg)
MAC Interpreter Compaq Interpreter HP Interpreter
Java BytecodeCompiler
![Page 4: Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of instructions designed to be executed by the Java.](https://reader036.fdocuments.us/reader036/viewer/2022082415/5a4d1b157f8b9ab059991632/html5/thumbnails/4.jpg)
Platform Independence A programming language is considered
platform independent or portable if the source code created on one computer platform can execute on another without any difficulty.
![Page 5: Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of instructions designed to be executed by the Java.](https://reader036.fdocuments.us/reader036/viewer/2022082415/5a4d1b157f8b9ab059991632/html5/thumbnails/5.jpg)
Compiled and Interpreted Java uses a compiler to translate the
source code by the programmer into bytecode
Java then continues and uses an interpreter to translate the bytecode into executable machine code.
![Page 6: Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of instructions designed to be executed by the Java.](https://reader036.fdocuments.us/reader036/viewer/2022082415/5a4d1b157f8b9ab059991632/html5/thumbnails/6.jpg)
Applications and Applets A Java program designed to operate
inside a webpage is called an applet A Java program designed to operate in a
stand-alone environment is called an application
![Page 7: Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of instructions designed to be executed by the Java.](https://reader036.fdocuments.us/reader036/viewer/2022082415/5a4d1b157f8b9ab059991632/html5/thumbnails/7.jpg)
Our first Data Types String – stores sequences of
characters. Int – an integer (only whole numbers) Double- allows for fractional
components of numbers (most common) Float- also allows for fractional
components of numbers
![Page 8: Getting Started With Java September 22, 2010. Java Bytecode Bytecode : is a highly optimized set of instructions designed to be executed by the Java.](https://reader036.fdocuments.us/reader036/viewer/2022082415/5a4d1b157f8b9ab059991632/html5/thumbnails/8.jpg)
Logical Operators & -- AND |-- OR ^ --XOR (exclusive or) || -- short-circuit OR && -- short-circuit AND ! -- NOT