Collections can't directly store: (Select all that apply ).why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Collections can't directly store: (Select all that apply ).why?

1.string 2.objects 3.primitive data types. 4.the type int.

23rd Jul 2018, 1:08 PM
PRINCE MATHEW
PRINCE MATHEW - avatar
1 Answer
+ 5
It only holds objects. So the answer to your question would be: String, Primitive data types and the type int. By the way, you can check answers of challenge questions once it is over.
23rd Jul 2018, 1:58 PM
Harsh
Harsh - avatar