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

En que se diferencia la vejetacion de estepa y la vejetacion del desierto
The median is 28; 16,24,x,48
What is the topic of each stanza of "The Solitary Reaper"? How does the stanza structure help develop a major theme of the poem?
What approaches would you use to place a value on sun microsystems?
Your great-uncle, who is 70 years old, was diagnosed two years apgo eith alzheimers disease. what is his life expectancy
Evaluate seven pi without a calculator
Anoche mi papá ________(dormir) temprano.
Which is associated with an increase of chlorofluorocarbons in the environment?
What were the effects of the arab opec oil embargo on the united states ppt?
The more kinetic energy there is an a sample of matter, the- A.more energy is absorbed as heat B.more energy is given off as heat C.Lower the temperature D.high