What data structure does the following declaration specify?
List[] myArray;
I think it should declare an array where each
Mr Josh Bloch says:
"Prefer lists to array because arrays are covariant and generics are invariant'
You could perhaps do:
List> someListArray;
This may give some performance hit (not even noticable i bet) but you will get better type safety at compile time.
but I think the question should be more around "why" you need this?