Java Generic Classes Arrays -


i reading this answer, , got confused normal array declaration , piece of code used create arrays generic classes:

gen<?> gens[] = new gen<?>[10]; 

what exactly, , how different normal array declaration?

i'm beginner might wrong, take on declaration you've written:

gen generic class, template. question mark signifies wildcard. therefore, have initialized array of 10 gen templates may configured type of object.


Comments