Java Primitive Data Types Data type: The type of value that a variable can hold is called data type. When we declare a variable we need to specify the type of value it will hold along with the name of the variable. This tells the compiler that the particular variable will hold certain amount of memory to store values. For example, in the lines of code above num is int type and takes two bytes to hold the integer value, bol is a boolean type and takes one bit to hold a boolean value . Data Type | Description | Size | Default Value boolean | true or false | 1-bit | false char | Unicode Character | 16-bit | \u0000 byte| Signed Integer |8-bit | (byte) 0 short |Signed Integer |16-bit | (short) 0 int | Signed Integer | 32-bit |0 long |Signed Integer | 64-bit |0L float | Real number | 32-bit |0.0f double |Real number |64-bit |0.0d Thought this was nice to share!