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

What effect of the Great Depression is described in the song, “Brother, Can You Spare a Dime?” The expanded government regulations used to control banking pract
the 1862 homestead Act gave how many free acres of land to any settler who paid a filing fee and who lived on the land for 5 years?
why are alcids unique
a few months ago, i told the american people i did not trade arms for hostages. my heart and my best intentions still tell me that's true, but the facts and evi
Help !!! Will give brainliest to correct person
Which ethnic group was successful in their attempt to separate from another country and from their own nation
In the communication process, the __________ is the person who reads, hears, or sees and processes the message being communicated.
A circle with two chords is shown below. The diagram is not drawn to scale. What is the value of x? Round the answer to the nearest tenth. A:x=15.8 B:x=5.1 C:x=
What are the 2 main parts of the cell cycle?
Help me pretty please!