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 argument was used by president abraham lincoln to explain his policy of leniency toward the south after the civil war
Tap water used for drinking is considered in the DIL calculations. A. True B. False
What is the meaning of the idea of federalism
Teachers can improve a student s self-esteem by a. being critical of their work. c. controlling the learning environment. b. letting a student set his or her
5 children's vaccines that are required by law of 1986
-6z+12 factor out the coefficient of the variable
Help me plz! |9 -5| - |6 - 8| = A. -6 B. -2 C.2 D.6
What is the structure that houses the genetic information of a cell?
What type of adjective are nashanilite
Attempts to instruct and edify the audience as well as entertain it by presenting a story with a clear moral were called _____. miracle plays mystery plays mora