Question: The ArrayList class in the standard Java library must manage an array of objects of type E, yet it is not legal to construct a
The ArrayList class in the standard Java library must manage an array of objects of type E, yet it is not legal to construct a generic array of type E[] in Java. Locate the implementation of the ArrayList class in the library source code that is a part of the JDK. Explain how this problem is overcome.
Step by Step Solution
3.48 Rating (151 Votes )
There are 3 Steps involved in it
The problem of not being able to construct a generic array of type E in Java is overcome in the Arra... View full answer
Get step-by-step solutions from verified subject matter experts
