0

When I use the statement Generic Array creation, the compiler will show an Error for Generic array creation.

but if I use these statement like this Without Error, it would be ok. And Every element it temp2 is indeed an ArrayList Initialization, If you try to initialize it with ArrayList, the compiler will report an error.

So What is the difference? Has the statement in Without Error created a generic array?

pythonHua
  • 23
  • 4

0 Answers0