Jump Start : Java

10/2/98


Click here to start


Table of Contents

Jump Start : Java

Topics for Discussion

Object-Oriented Principles

Conventional Compiled Languages

Java Virtual Machine

“Run-anywhere” Capability

Java Application Program Interface (Java API)

Java API : A Simplistic View

Java API Classes

Types of Programs

Problem Solving Using Java

What is an Object?

Classes are Blueprints

Example

Instantiation : Examples

Operator new and “dot”

Elements of a Class

Class Structure

Defining Classes

Naming Convention

A complete example

Identify Objects

The Random class

Design

Debugging and Testing

Class Components

Method Invocation/Call

Defining Methods

Method Definition : Syntax

Return Type

Return Statement

Parameter List

Parameter list : Syntax

Method Definition : review

Method Definition : Example

...Example (contd.)

What happens when a method is called?

Method Invocation : semantics

Constructors

Constructors (contd.)

Visibility Modifiers

..Modifiers (contd.)

CLASSPATH

CLASSPATH

Inheritance

Syntax

Representing the Relationship

Modifers

Example : Words

Example : School

Abstract Class (ABC) and methods

Example

Interface

Example

Inheritance and Interfaces

Types of Programs

Events

Event Generation

Event Handlers

Event Handling Process

Java Event Model

Java Class Hierarchy

JDK1.1 Event Model : System support

JDK1.1 Event Model : Application Support

Implementing Listeners

Example: Doodle.java

Example (contd.)

Applet

Requirements

Applet Class

Applet Runtime Structure

Example 1: Using only paint()

Example 1: interpretation

html file

Example 1: execution semantics

More on Applets

On-line Information

Summary

Author: B.Ramamurthy

Email: bina@cs.buffalo.edu

Home Page: http://www.cs.buffalo.edu/~bina

Download presentation source