Chapter 2 - Introduction to Java Applications - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Chapter 2 - Introduction to Java Applications

Description:

Title: Chapter 2 - Introduction to Java Applications Author: kalid Last modified by: Dr. Walid Abu-sufah Created Date: 8/10/2000 9:14:05 PM Document presentation format – PowerPoint PPT presentation

Number of Views:37
Avg rating:3.0/5.0
Slides: 13
Provided by: kal787
Category:

less

Transcript and Presenter's Notes

Title: Chapter 2 - Introduction to Java Applications


1
Introduction
Read DD Sec 1.8 Sec 1.13THE Java tutorial -
http//java.sun.com/docs/books/tutorial/
2
About Java
  • Developed by Sun Microsystems
  • Originally intended for intelligent
    consumer-electronic devices (smart refrigerators,
    microwave ovens, toasters..)

3
About Java (cont.)
  • Java Evolved into a general-purpose, high-level
    Java programming language which
  • Provides a powerful software platform for the
    development of applications.
  • Allows writing applets for the Web
  • An applet is a program that runs within a
    Java-enabled browser.

4
Java Applications Servers
  • A Java server is a special kind of a Java
    application which serves and supports client
    programs on a network
  • Examples of servers
  • Mail servers
  • Proxy serves
  • Print servers

5
A Servlet
  • Another specialized java program
  • Can almost be thought of as an applet that runs
    on the server side.
  • Servlets are similar to applets in that they are
    runtime extensions of applications
  • Instead of working in browsers, servlets run
    within Java Web servers, configuring or tailoring
    the server

6
Basics of a Typical Java Environment (Sec 1.13)
  • Java is unusual in that a program is both
    compiled and interpreted
  • Java programs normally undergo five phases
  • Edit
  • Programmer writes program (and stores program on
    disk)
  • Compile
  • Compiler creates platform-independent codes
    called Java bytecodes

7
Java Environment (cont.)
  • Load
  • Class loader stores bytecodes in memory
  • Verify
  • Verifier ensures bytecodes do not violate
    security requirements
  • Execute
  • Interpreter translates bytecodes into machine
    language

8
Fig. 1.1 Typical Java environment.
9
(No Transcript)
10
Java Virtual Machine (Java VM).
  • Think of Java bytecodes as the machine code
    instructions for the Java Virtual Machine (Java
    VM).
  • A Java interpreter is an implementation of the
    Java VM
  • A Java interpreter can be
  • A development tool that runs aplications
  • A Web browser that can run applets

11
Java Portability
  • Java bytecodes help make "write once, run
    anywhere" possible.
  • You can compile your program into bytecodes on
    any platform that has a Java compiler.
  • The bytecodes can then be run on any
    implementation of the Java VM.
  • Java portability
  • As long as a computer has a Java VM, the same
    program written in Java can run on Windows 2000,
    a Solaris workstation, or on an iMac

12
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com