Which of the following is NOT a primitive data type in Java?

Java Associate Easy

Java Associate — Easy

Which of the following is NOT a primitive data type in Java?

Key points

  • String is a class, not a primitive data type
  • Primitive data types store single values
  • double, boolean, and char are examples of primitive data types

Ready to go further?

Related questions