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 is the volume of a cube measuring 5cm on each side?
Justine can type 43 words per minute. At that rate, how many words can she type in 45 minutes?? Please answer ❤️
HELP PLZ ill givr u 20 points Edward is writing a proof of the Converse of the Triangle Proportionality Theorem using the image above. Which of the following co
The hypotenuse length is
I need help on this question plz
When combustion reactions occur inside a rocket's engine, a lot of heat and pressure are released. the pressure gradient is much larger inside the rocket than o
What is the area of the space
I need help on this question
What is the loss of skin due to burns
A body is moving in a perfect circle at a constant speed. are there any forces acting on this body? how do you know?