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 solution to the equation? 5=2/5a O2 O43/5 O121/2 O25
example of wood products​
What image in the first verse is used to portray the passing of time? A. the traveler B. the sand C. the curlew D. the town
a n s w e r n o w p l e a s e
why is it important to for people to know how their government works? i’ll give brainiest ( a paragraph long)
A dump truck delivers dirt for $6 per cubit foot. The dimensions are 4 3/4 ft by 8 ft by 17 ft. How much does a full load of dirt cost
If the world......didn’t have weegee.......would the world be happier.......???? :(
I need help what is y over 5>= 8
Based on the descriptions of the body types in this unit, what do you think is the hardest body type to dress in today’s fashion? Give some specific examples of
Calculate the number of grams of nitrogen dioxide that are produced from 4 moles of nitric oxide