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 can be interpreted from the graph?
what do organisms from the ocean use the carbon dioxide for?
Read these lines from the poem. The pillow quakes and quivers Like pudding on a plate. How does the simile affect the meaning of this poem? A.The sp
Your roommate is 5' 1" and weighs 100 lbs what bmi category would she be in
Truman fired macarthur: for incompetence. because of party politics. to preserve civilian control of the military. for reasons that are still unknown. because h
Aubra and Tony are rounding the number 1.65 to the nearest tenth. On a number line they see 1.65 is exactly halfway between 1.6 and 1.7. Aubra says to round to
A box slides from the top of a ramp to the bottom, its maximum potential energy is located
"which term refers to a sponsoring entity's promotion of sponsorship?"
When a consumer eats a producer, the energy that is not used or stored is lost as A) heat. B) sugar. C) sweat. D) urine.
A folder is one icon considered a shortcut. True False