The eight primitive data types in Java are:

  • boolean, whose values are either true or false
  • char, whose values are 16-bit Unicode characters
  • arithmetic types:
    • integral types
      • byte
      • short
      • int
      • long
    • floating-point types
      • float
      • double

 

 


Range of numeric data types :-