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

What scene does romeo and juliet get married?
Which group founded Harvard College in 1636? A. Puritans B. Anglicans C. Quakers D. Catholics
How do I solve rhyme scheme? Please help!!
Which of these assumptions can an entrepreneur safely make when planning a start-up? CHECK ALL THAT APPLY!! Setting up a business in a large city will guarantee
What would happen if you got pulled over with a permit?
Please help me on 7G thank you :)
To find the largest number in a list of numbers, use the _____.
Jack can run a mile in 9, 1/3 minutes. How long will it take him to run 3, 1/2 miles?
Can someone please help me with these Spanish questions? I have no idea what I'm doing. Spanish translators aren't always correct. Ellos _________ la cena. (com
A cube has a surface area of 384 square inches. What is the edge lenth of the cube? Explain pls