Ask Question

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

a) True

b) False

+3
Answers (2)
  1. 16 July, 03:30
    0
    True.

    Explanation:

    All the elements of an array in Java MUST conform to the same data type.
  2. 16 July, 03:33
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers