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

where will you find maximum rate of evaporation - ocean, pond or an aquarium? Give reason to support your answer.
How many flags are in this wolld ;)
What is the solution: (9x+2)(4x^2+35x-9)=0
What is a synonym for sensory language?A.simileB.fluencyC.metaphorD.imagery im thinkin D?
Guess the mystery number.The number is greater then 10 and less then 18. The number is the sum of two identical odd numbers. What is the number? Show how you fo
Square of the complex number (i - 2)?
Where did the Greeks believe that most gods lived
Hassan's backyard swimming pool is 30 feet long, 20 feet wide, and 5 feet deep. There are 7.5 gallons of water in 1 cubic foot. How many gallons of water will t
Perimeter of a square with an area of 81cm2
Rachel and David share 40 biscuits between them in the ratio 2:3, How many biscuits do they each get?