Question: Why cant we create generic array, or write code as List[] array = new ArrayList[10];?
Why can’t we create generic array, or write code as List[] array = new ArrayList[10];?
Step by Step Solution
3.52 Rating (145 Votes )
There are 3 Steps involved in it
In Java arrays are what we call reified types This means that they have runtime type information abo... View full answer
Get step-by-step solutions from verified subject matter experts
