Data types in Java

There are 2 types of data types in Java.

  1. Primitive
  2. Reference  (for example – string and objects of classes)

Data Types in Java

Here is the list of primitive data types in Java.

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

You may also like...