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

Choose the correct 1 equivalent for nosotros somos. A. you are B. he is C. we are D. they are
What are some hobbies in French
An ac generator has a maximum emf output of 150 V. What is the rms current in the circuit when the generator is connected to a 35 W resistor? a. 3.1 A c.
Solve. x – 6 = –14 a. –20 b. 20 c. 8 d. –8
Polls are taken to a. guarantee the constitutional rights of all people. b. determine people's attitudes and viewpoints. c. further the political socialization
The principle difference between where salt marshes and mangrove forests grow is _______.
If a wave hits a smooth surface at an angle of incidence of 40 degrees, the angle of reflection is A. 40 degrees. B. 0 degrees. C. 90 degrees. D. 80 degrees.
Charity has swollen glands and a bright red tongue. She has: pneumonia tuberculosis scarlet fever whooping cough
what change in the construction of rifles helped the americans during the revolutionary war?
k+m/-7=n solving for k