HELP! * GREY=local LOCAL HTML version of Foils prepared January 8,96

Foil 30 Java Language -- Variable/Expression Types

From Overview of Java SC95 Tutorial on Web Technologies -- December 4,95. by NPAC Team * See also color IMAGE

Each Java variable or expression has a definite type. Simple types such as integers or booleans are built-in. New composite types can be constructed in terms of classes, arrays and interfaces.
There are 4 integer types: byte, short, int, long of size 8, 16, 32 and 64 bits, respectively.
Float is 32 bits, double is 64 bits. Floating point arithmetic and data formats are defined by IEEE754.
Characters are given by Unicode charset and represented as short integers.
Arrays are "true" or "first class" objects in Java and no pointer arithmetic is supported. Hence, arrays are handled as all other composite objects and its special role is due only to some syntactic sugar inherited from C/C++.



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 Feb 18 1997