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

Renauld has to pay 2 percent in closing costs and 14 percent for the down payment on a purchase of $170,500. Over the life of his loan, he will pay $163,021.87.
Find the length in segment AG in the spiral shown
Why is the concept of site selection, in storing nuclear waste, so important?
Who hands down the ruling of a case?
Typically found along a continent’s west coast Moderately cool summers Mild winters Affected by Atlantic air masses Which European climate is de
Please help me!!!! A group of scientists have proposed a new theory about biological evolution. The new theory would be reliable if other scientists prove the
I am a bit lost with this problem. Could someone please explain this to me :)
what is the pH of 0.20 M nitrous acid at equilibrium (Ka=4.6 x 10 -4)
Compré los ___________de chocolate para comer durante la película. Answer for Blank 1:
How does theodore roosevelt early political career reflect his ideas on the role of government?