1 / 8

Getting Started With Java

Getting Started With Java. September 22, 2010. 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 ). Compiler. Java Bytecode. MAC Interpreter. Compaq Interpreter.

kaemon
Download Presentation

Getting Started With Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Getting Started With Java September 22, 2010

  2. 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)

  3. Compiler Java Bytecode MAC Interpreter Compaq Interpreter HP Interpreter

  4. 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.

  5. 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.

  6. 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

  7. 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

  8. Logical Operators • & -- AND • |-- OR • ^ --XOR (exclusive or) • || -- short-circuit OR • && -- short-circuit AND • ! -- NOT

More Related