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

Pruitans typically formed which type of community?
Please help I’m bad at this subject
where do people get all of the apex answers? It seems like people on this just know word for word what the answer is for Apex. I'm working on English specifica
in a communist economy, all economic activities are controlled by (a) ____ Such economies are also known as (b) ___ a. government, business owners, or individ
the diameter of the larger circle is 12.5 cm the diameter of the smaller circle is 4.5 what is the best approximation for the shaded region? use 3.14 pi A.70.7
Find the interest rate pricalpal 400$ rate 5% time 1 year
Richard B. Russell served in the U.S. Senate and helped to bring economic change to Georgia by using his influence to bring _________ to Georgia.
10.9010 has how many significant figures
What is one reason the colonists had difficulty coming together to revolt against britain?
How do i show my work on dividing oranges into eighths . He has 5 oranges.How many eights will he have