Size for Java's Primitive Types : Data Type Introduction « Data Type « Java Tutorial






Type          Explanation

int           A 32-bit (4-byte) integer value

short         A 16-bit (2-byte) integer value

long          A 64-bit (8-byte) integer value

byte          An 8-bit (1-byte) integer value

float         A 32-bit (4-byte) floating-point value

double        A 64-bit (8-byte) floating-point value

char          A 16-bit character using the Unicode encoding scheme

boolean       A true or false value








2.1.Data Type Introduction
2.1.1.The Primitive Types
2.1.2.Size for Java's Primitive Types
2.1.3.Default values for primitives and references
2.1.4.Literals
2.1.5.Surprise! Java lets you overflow
2.1.6.Wrapping a Primitive Type in a Wrapper Object: boolean, byte, char, short, int, long, float, double
2.1.7.Print the limits of primitive types (e.g. byte, short, int ...) in Java
2.1.8.Get the minimum and maximum value of a primitive data types
2.1.9.Shows default initial values
2.1.10.Primitive utilities
2.1.11.Return primitive type the passed in wrapper type corresponds to