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 the domain of the function is this table
Which statement below is incorrect about the events that occur in a negative polarity lightning strike? Select one: a. the stepped leader forms as positive char
Air circulation patterns within the atmosphere that create wet terrestrial conditions in the tropics and dry conditions at 30oC North and South of the equator.
Really need help on #67 please , thank you!!
All of the following are activated carriers except: a. NADPH b. NADPH3 c. FADH2 d. ATP
Suppose y varies directly with x. If y = 6 when x = 2, find x when y = 12. 4 3
Y^2+X^2=36 y=-3x+5.
PLEASE HELP!! An automotive insurance company has 30,000 policyholders, and the accident rate is 0.06. If the company needs to make a profit of $1,740,000 this
It is claimed that the national average for the price of gasoline in $2.66 per gallon. A sample of 25 gas stations in Hays yielded a sample mean of $2.89, and i
An increase in temperature will effect vapor pressure by: