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

The most important feature of the crime control model is what? A. Protecting individuals from being falsely accused B. Reducing crime C. Punishing those who co
find the radius of a circle with an area of 89 sqaure feet.​
..........................
the line which passes through -2,5 and 6,8​
How did Cesar Chavez protest the poor conditions facing Mexican-American farm workers? with riots with peaceful protests with a political campaign with flyers a
What are the two most popular sports in Mexico?
Write a paragraph about conditions during the period leading up to the Great Depression.
20. The most all inclusive level of organization is:A. BiomeC. EcosystemB. BiosphereD. Community​
How many days a week should children and teenagers get 60 minutes of physical activity? a. two days a week b. three days a week c. four days a week d. five d
Need help don’t understand