Basic HTML version of Foils prepared July 6 99

Foil 25 Types

From Use of Java Language in Computational Science DoD Modernization Users Group Conference Monterey -- June 7 99. by Nancy McCracken, Geoffrey C. Fox


A variable is either a primitive type such as int, float or double, or it is an object.
Note that there is no primitive type for Complex.
Type Size in bits Values: example Standard
boolean 1 true or false
char 16 \u0000 to \uFFFF ISO Unicode
byte 8 signed integer: 0
short 16 signed integer
int 32 signed integer
long 64 signed integer
float 32 floating pt: 0.0f IEEE 754
double 64 floating pt: 0.0 IEEE 754



© 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 Tue Jul 6 1999