Chapter 1 Topics

2/3/00


Click here to start


Table of Contents

PPT Slide

Chapter 1 Topics

Computer Components

Memory Unit

Central Processing Unit

Peripherals

Computing Profession Ethics

General Language Types

Machine Language

Assembly Language

High Level Languages

Some C++ History

Some Java History

Java Features

Typical Java Environment

Java programming language

Two Types of Java Programs

Inheritance hierarchy among vehicle classes

Inheritance

Simple Java Applet

640 pixels wide x 480 pixels high

Welcome.html file to execute the applet

HTML predefined color names and their Hex RGB values

Two Programming Paradigms

What is an object?

About Java Applets

Variable Assignment Operator Syntax

What is a reference?

Applet to add integers

Applet to add integers (cont’d)

Applet to add integers (end)

More about Applets

4 Instance Variables Here

Variable vs. Reference

Variable vs. Reference

Using a reference

Using a reference

Using a reference

prompt is a reference to an object

Variable vs. Reference

Creating new objects

Applying methods to objects

Keyword new

Java Language

Division Operator

Modulus Operator

Some Java Operators

Precedence

Associativity

Evaluate the Expression

Parentheses

Control Structures

6 Relational Operators

Applet comparing integers

Applet comparing integers (cont’d)

Applet comparing integers (cont’d)

Applet comparing integers (end)

ACKNOWLEDGMENT:

Author: Sylvia Sorkin

Email: ssorkin@ccbc.cc.md.us

Home Page: http://www.essex.cc.md.us/Essex/people/ssorkin