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 is Circular Motion?
If every positive number has two square roots and you can find the length of the side if a square window by finding a square root of the area, why is there only
By tradition, when does the presidential campaign begin?
7.20 7.2 greater equal or less
What represents instantaneous velocity on a graph?
evaluate -a.   a=2.2  need help
What does the fact the pi is irrational indicate about it'd decimal equivalent
The 10th and the 20th term of an arithmetic sequence are 10 and 40, respectively. Find its 100th term.
find the opposite or additive inverse of 48 =
What's the value of 3 in 310.25