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 will be the next digit in the sentence 1, 1, 2, 3, 5, 8, 13, 21, 34?Please show me your way of thinking :)
The oldest rock in the world, the Granitic Gneiss, was found in what state?
What's a Protective tariff?
power set of {e,f,m,n,o}
What is the symbol of the Republican Party?
What American President was famous for playing golf every Fourth of July?
What is the symbol of the Republican Party?
A plasma membrane and a cell wall 1. Are two names for the same thing 2. Have the same structure and different functions 3. Have different structures and the s
What will be the next digit in the sentence 1, 1, 2, 3, 5, 8, 13, 21, 34?Please show me your way of thinking :)
The acceleration of the gravity Moon is equal to one-sixth of Earth's gravitational acceleration times. if an astronaut has a mass of 60 kg, what is the mass an