boolean, byte, char, short, int, long, float and double - Primitive Types
A primitive-type variable can store exactly one value of its declared type at a time. For
example, an int variable can store one whole number (such as 7) at a time. When another
value is assigned to that variable, its initial value is replaced.
其他的都是 Reference Types (String, 所有其他的class)
No comments:
Post a Comment