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

It is impossible to assemble a bed frame with ________________________ instructions.
The ocean floor is not entirely flat, but has mountains and valleys. How did they get there? (Things to think about: age of crustal rock, mid-ocean ridges, plat
What is a diagonal and if you can please solve this question for me
you want to introduce your friend to your mother in spanish what do you say​
what is wrd wrd 2 about
What did the Romans build as a step toward environmental management?
Which components should the nurse include when documenting a critical pathway? select all that apply.
What is 43 x 2452? Also (I am trading khaki icicle earrings in animal jam play wild, willing to take offers!) (sorry for being off topic I’m just desperate :-:)
Help me about it please
M is the midpoint. Find the value of X.