Hmm, I can't fully agree with your above argument, since the underlying (concrete) type does not change when you store something inside a object array.
Ah, in that case I stand corrected 😊 though I haven't really introduced the object type in this course, so the expected answer was false. I should probably reword that question to make it exact!
Thanks for the clarification!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for your reply!
Hmm, I can't fully agree with your above argument, since the underlying (concrete) type does not change when you store something inside a
object
array.See the following example:
Other types for the array would also work, they just have to satisfy both
int
andstring
, for exampleIComparable
.Ah, in that case I stand corrected 😊 though I haven't really introduced the
object
type in this course, so the expected answer was false. I should probably reword that question to make it exact!Thanks for the clarification!