Primitive Data Types in Java

By // No comments:
Data types are the foundation of a programming language. There are 8 types of primitive in java: boolean, byte, char, double, float, int, long and short. The boolean data type holds value either true or false. The default value of the boolean is false.  The char data type represents a single character 'a', 'B', 'c'. It's 16-bit integer number(un-signed). Un-signed means non-negetive. The others are numeric data types in java (char is included as its number type). They are the following:        Integer Numbers: byte: 1 byte (8 bit) : Stores hole numbers from -128 to 127  char: 2 bytes (16 bit) : Stores hole numbers from 0 to 65535  short: 2 bytes (16 bit) :...