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

how does the author incorporate humour in the story mothers day?( topic mother's day by John Boynton Priestley)​
What are Ways to Address Low Health Literacy?
Which is not a contributing factor to the seasonal cycle in atmospheric CO₂? A) Vegetation growth B) Human activities C) Ocean absorption D) Wildfires
Foods in the Protein Foods Group provide protein, but which of these foods from that group is also a source of calcium? 1) Milk 2) Chicken 3) Beans 4) Bread
the king has the “mandate of heaven”
Which of the following shows the correct conversion of 2:35p.m to military time? A) 14:35 B) 12:35 C) 02:35 D) 23:35
An online clothing company sells custom sweatshirts. The company charges $5.00 for each sweatshirt and a flat fee of $2.99 for shipping. a. Write a linear funct
Helps what 4x+1+6 WILL GIVE BAINLEST
To put sentences in direct speech
Explain how finding 4 x 384 can help you find 4 x 5,384.then find both products.