Computer Applications

Assertion: An array can store elements of different data types.

Reason: An array is a user-defined data type with multiple values of the same data type but a different memory index.

  1. Assertion is true, Reason is false.
  2. Both assertion and Reason are false.
  3. Both assertion and Reason are true.
  4. Assertion is false, Reason is true.

Java Arrays

1 Like

Answer

Assertion is false, Reason is true.

Reason — An array is a user-defined data type that stores multiple values of the same data type at different memory locations. It cannot store elements of different data types.

Answered By

1 Like


Related Questions