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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -