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

Function f is represented by f(x) = 5x+10Find f(-3)Find the value of x such that f(x) = 90 is true
A package of 5 pairs of insulated gloves costs $44.95. What is the unit price of the pairs of gloves
Mr. and Mrs. Doran have a genetic history such that the probability that a child being born to them with a certain trait is 0.83. If they have four children, wh
If you select a marble without looking, how likely is it that you will pick a black one?
Given that y1(t)=cos(t) is a solution to y''-y'y=sin(t) and y2(t)=1/3e²t is a solution to y''-y'y=e²t. What is the general solution to the differential equation
The tempatire was -13°f and then rose 9°f
The secretion of thyroid hormones is controlled by
Jessica drove 100 miles and then increased her speed by 30 mph for the following 200 miles. If the second part took 1 hour less than the first part, What was he
2/3 divided by 1/2 On a grid
Determine the structure of the six uds states. a) Linear b) Tetrahedral c) Trigonal planar d) Octahedral