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

At a store , 24 bottles of water and 6 bags of chips costs $23.40. Five bottles of water and two bags of chips cost $6.60. What is the cost of a single bottle o
sophia has 3 pink tulips and 3 white tulips. what fraction of sophias tulips are pink
What is %15 of $35.15 What is %15 of $27.00
What is the property, transformation, or simplification used in each step of this problem?    x-7=34
The distance of a wave crest from its resting. position is its. out of A. Wavelength B. Amplitude C. Height
SAT Help Jack can paint a house in 5 days, and Richard can paint the same house in 7 days. Working together, how long will it take them to finish the job? How d
What is the slope of (2,3) , (6,7)
What are the 4 main products for southeast
how does the carbon cycle work in the desert
Help please this I'd for geometry