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

HHURRY BEING TIMED read this from a story walk around the pyamids and through the wo pathenon hight on a hill catches the first light of morning the the carvers
Use the context clues to find the definition for the word inquire as it is used in this paragraph. to shout to ask to help to wonder
What is the area of the figure?
Help please!!!!!!!!!!!
How many 1/2 yard lengths are in 1 yard
2x + x + 12 + 96 = 180, What is x?
who is. the president of Gnana​
A line passes through the points (-15, 4) and (5,8). What is its equation in slope-intercept form? What does it mean
Compare and contrast the care characterization what do you picture in your imagination what do you see in the video thank you ma'am
Probably the area with the lowest population in Europe is the a. south c. north b. far south d. far north Please select the best answer from the choices provide