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

Need help Please! anyone
Please help? Will vote brainliest!!! when writing persuasively it is essential to use persuasive writing strategies. give an example of each and explain why wri
At 25°c, the vapor in equilibrium with a solution containing carbon disulfide and acetonitrile has a total pressure of 250. torr and is 85.7 mole percent carbon
If you encounter a do not enter or wrong way sign, what should you do?
What term refers to the process of trying to create good, open relations between countries?
What is the skills and education needed to work in retail hospitality?
80 houses are build 50 have 2 car garage 40 have swimming pool and 35 have bouth how much have none
If 1 square food of grass seed = 25cents ,then how much would grass seed cost for 55,000 square feet of grass seed was needed. Please note that I’m doing this o
Approximately how much energy is available to the secondary consumers in this energy pyramid?
what are the spacial features of Granite igneous rock