Multiple choice general knowledge science & technology

Identify the Primitive data types in java??

  1. int

  2. array

  3. String

  4. float

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

In Java, primitive data types are the basic built-in types that are not objects. 'int' and 'float' are both primitive types - int is a 32-bit integer and float is a 32-bit floating-point number. Array (B) is not a primitive type - it's a reference type/object. String (C) is also not primitive - it's a class from the java.lang package.