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

The circumference of a circle is 240 meters. What is the approximate radius of the circle? (Use 3.14 for 7) A) 9 meters B) 38 meters C) 76 meters D) 153 meters
paragraph based on active and passive
Please hurry I have to do it in 2 minutes
hey besties!!um so my crush kind of stared at me in theology class what does that mean???/
There are four basic classifications of privacy rights: Unreasonable intrusion upon the seclusion of another; Using another person’s name or likeness and Public
Deanna was refused a job, even though she had all the required qualifications. The reason for this rejection was that she reacted negatively to a suggestive com
Find slope of line (I need to see if you get the same answer as me to know if it’s right)
a. What is environment?​
Can someone plz help me :(
Which food idem contains a lot of proceeded simple sugars?