Data type is a classification of data which tells the compiler or interpreter how the programmer intends to use the data.

Data Type of a particular variable or constant determines how many bits are used for that particular data item, and how the bits are to be interpreted.

  • Primitive Data Types
    • e.g. int, bool, etc.
  • Composite Data Types
    • Collections or groupings of multiple data items into a single entity
    • e.g. Array, Classes, etc.