Ask Question
29 June, 20:39

1) All the elements of an array in Java MUST conform to the same data type.

a) True

b) False

+4
Answers (2)
  1. 29 June, 21:46
    0
    True.

    Explanation:

    All the elements of an array in Java MUST conform to the same data type.
  2. 29 June, 23:52
    0
    TRUE

    Explanation:

    The array is allow to store the multiple values but with same data type.

    It cannot store element with different data type.

    For example:

    int array[] = {1, 'b', 8.7, 9, 'z'}

    the above is wrong way to declare the array.

    the correct ways is:

    int array[] = {1,2,3,4};

    float array[] = {1.2, 3.4, 9.6};

    we can store only same data type element in multiple tiles.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “1) All the elements of an array in Java MUST conform to the same data type. a) True b) False ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers