Basic HTML version of Foils prepared
Sept 6 1998
Foil 6 Java Types
From
Java Tutorial 98-2: Java Language and Object Oriented Techniques CPS606 Fall Semester 1999 --
Sept 7 1999
.
by
Geoffrey C. Fox, Nancy McCracken
1
Each Java variable or expression has a definite type, given by a declaration such as
int i;
double x, y, z;
Color c;
2
There are three "types" of types!
There are Primitive or Simple types such as ints or booleans which are built-in.
New composite types (objects) can be constructed in terms of classes and interfaces. The type of an object is its class or interface
Arrays we will see are a sort of "almost" object!
in Table To:
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Mon Sep 6 1999