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 do i find the greatest common factor of 150, 275, and 420 ??
Which cell part converts food into energy that is usable by a cell?
Solve the equation for y.4x – 5y = 9
How are continental volcanoes formed?
what are two determining factors in how organisms are classified into kingdoms
How many seismic stations are needed to determine the location of an earthquake's epicenter?
what is 15.70796327 rounded to 1 decimal point?
Suppose that a rectangle has a perimeter of 24 meters. Express the area A(x) of the rectangle in terms of the length x of one of its sides. A(x) = ??
If a potato is allowed to dehydrate by sitting in open air, would the potato cells be more likely to absorb more water or less?
2x+8=22 how do I figure out the answer to problem 2x+8=22 ?