Sabado, Enero 26, 2013

Primitive Data Types,


Primitive Data Types

There are three primitive data types: integral, floating-point, and boolean.

The integral data type deals with integers, or numbers without a decimal part.  It is classified into five categories: char, byte, short, int, long. The int data type can represent integers between
-2147483648 and 2147483647. The data type short is used to represent integers between –32768 and 32767.

The floating-point data type deals with decimal numbers.

The boolean data type deals with logical values.

Walang komento:

Mag-post ng isang Komento