Notes on Java Programming.

Essay by lovenlif November 2003

download word file, 1 pages 3.0

Chapter One Notes

Main Hardware

-CPU - (Central Processing Unit) executes each step

-I/O Devices - (input/output devices) keyboards, monitors, mouse,etc...

-Main Memory(RAM) - Random Access Memory - Temporary Storage, smaller storage, faster access

-Secondary Memory - Hard Drive, floppy disk, CD. Permanent Storage, larger storage, slower access

One address location is 8 bits which is equivalent to 1 byte.*


-Applications - games, Microsoft Word, web browser, etc...

-System - Operating System: manages resources, determines when certain applications run

-G.U.I(geographical User Interface) - windows, shells, icons, buttons, scroll bars


-Analog - continuous

-Digital - broken up

Byte = 2^0 (1)

KB = 2^10(2E10)

MB = 2^20(2E20)

GB = 2^30(2E30)

TB = 2^40(2E40)

2 values for every 1 bit

Base 10

000 = 0

001 = 1

010 = 2

011 = 3

100 = 4

101 = 5

110 = 6

111 = 7

Types of Errors

Compile-time: Any error that is identified by the compiler

Ex: Syntax

Run-time: Occurs during program execution.

It causes the program to terminate abnormally or "crash".

Ex: dividing by zero(4/0)

Logical: Produces the wrong results

Whole Program

Source Codecompilemachine language(target languages)

Source Codeinterpreter


Primitive Data Types

-int (integer)

-double (Decimal/real)

-Char (characters/letters)

-boolean (yes/no & true/flase)

A class represents a concept, and an object represents the embodiment of the class.

Ex: -Radio

Bank Account

A class can be used to create different objects

An object represents something with which we can interact in a program

-Has attributes and behaviors

-Provides a collection of services that we can tell it to perform for us

-The services are defined by methods in a class that defines the object


-one class can be used to derive another

-classes can be organized into in heritance hierarchies




charge account...