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

Which two compounds containing carbon are found in the chemical equations of photosynthesis and cellular respiration? O CO3 and C2H02 O CO2 and C6H1206 O CO2 an
Help with this math homework please :/
Which scenario is an example of extrinsic motivation?
Is t = 12 a solution to the inequality t ≥ 12 Yes or No
A medical record is a complete record of a patient’s medical history. Which of the following items would be included? Check all of the boxes that apply. A. a me
im confuesd with this question so can you please help thanks!
The prime factorization of 16x5
I am doing a literature review, how do I write it correctly? It is MLA
it would not be possible for _____ to survive in a desert
Jesse's feelings change about his cousin to be annoyed to be more interested in what he talks. Also, Pete show that Jesse himself has changed as he struggled to