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

  • ArrayList
  • Boolean
  • String
  • int
In Java, primitive data types are basic data types that store single values. int is one of the primitive data types and is used to store integer values. String, ArrayList, and Boolean are not primitive data types; they are reference data types or classes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *