Computer Science, asked by sharfraz3212, 1 year ago

Why we cannot use primitive data type in arraylist?

Answers

Answered by digi18
0
Because Arraylist is generic and in Java we can only use Class and array in generics and not primitives.


Thanks
Similar questions