Datatypes in Java

Data types specify the different sizes and values that can be stored in the variable.

Primitive Data Types

  1. boolean
  2. char
  3. byte
  4. short
  5. int
  6. long
  7. float
  8. double