acoffman8098 acoffman8098
  • 04-07-2019
  • Computers and Technology
contestada

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

a) True
b) False

Respuesta :

PhantomWisdom PhantomWisdom
  • 13-07-2019

Answer:

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.

Answer Link

Otras preguntas

why was the phalanx the most powerful millitary formation?
5x + 2y = 8 x + y = 4 If you want to solve the system of equations by addition, which of the following could you do?
What is a physical science term for unmoving?
The Fall of the House of Usher By Edgar Allan Poe Shaking off what must have been a dream, I scanned more narrowly the real aspect of the building. Its principa
What is the vocabulary word for a section of dna that codes for a specific protein?
I sold 8 of which were ducks what the next donut sold will be a duck
Jim wishes to buy 3 gifts that cost 15 dollars, 9 dollars, and 12 dollars. he has 1/4 of the money he needs, how much more money must he earn in order to buy th
What is the synonym of democracy A protest B policy C ceremony D inauguration
What can always be seen in the styles gallery??
when x2+3x-4 is subtracted from x (x2+3x-2) what is the difference