Thursday, May 10, 2007

Data Types

Java is a “strongly-typed” language.
. All variables must have a declared type.
. Example of weakly-typed language (VB, perl)
Data types fall into 2 categories:
. primitive data types.
. reference types
Data of the same type always have the same size regardless of the machine the program is running. This is good for portability.

No comments:

Post a Comment