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

Which of the following is the equation of a line parallel to the line y=3x+2, passing through the point (10,1)? A. 3x - y=29 B. 3x + y=29 C. -3x - y=29 D. 3x +
information about tigers
Is Obesity Really a Big Problem in America? Please help me :)
Hello how do you solve for x a= x-b/y
Solve the equation:  4 1/5 + b = 9 3/5
what is the fraction ten twelfths in it's simplest form ?
Sam and lou need a total of 1 foot of wire for a science project.sam wire is 8 out of 2 n lou is 7 out of 8.Do they have enough.
what is the full definition of adaptation?
(z+4)(z+3) Please Help!
Solve the equation: 1/4 + w = 6 1/3