List of Data Types in Java Language
There are eight basic data types for the storage of integers, floating-point numbers, characters, and boolean values. These often are called primitive type because they are built in parts of the java language rather than objects, which makes them more efficient use. Another type of number that can be stored is a floating-point number, which has the type float or double.
Type | Size |
byte | 8 bits |
short | 16 bits |
int | 32 bits |
long | 64 bits |
Comments
Post a Comment