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

(sum of 50 different whole numbers, each less than 51)-(sum of 45 different whole numbers, each less than 51)is at most A:10 B:15 C:240 D:285
Which line from the first stanza of "The Second Coming" states the figurative problem that the speaker infers will initiate chaos? "Turning and turning in the
A solution of phosphoric acid has a boiling point of 158 degrees Celsius. What is the boiling point of the solution in degrees Fahrenheit?
The part of the constitution allows
I can't seem to figure it out can someone please help me??
Solon, pisistratus, and clisthenes contributed to the development of athenian government by
1 mol of CCl4 molecules has ____ moles of Cl atoms.
An all-or-none response pattern is characteristic of the
What number should be added to both sides of the equation to complete the square? x^2 â 10x = 7?
Which of the following is most responsible for El Niño?: a. Unusually cold water in the Atlantic causes an increase in wind activity. b. The calming down of tra