• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generics Confusion from Angelika Blog

 
Ranch Hand
Posts: 774
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am quoting this text from Angelika blog about Generics and i want to know what does it exactly mean.

The question was

Can i create an array whose component type is a concrete parametrized type. I understood the major part of it but there was a paragraph written
which i am not able to understand. It states at the end.


Only arrays with unbounded wildcard parametrized type as the component type are permitted. More generally, reifiable types are permitted
as component types of arrays, while arrays with non-reifiable component type are illegal.



I am not able to understand what does this mean? Any pointers will be helpful.

BR,
 
Ranch Hand
Posts: 87
IntelliJ IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Prithvi,

If you could go ahead in tutorial it will create your doubt.

But what the paragraph means is :


I have taken the examples from tutorial itself.

Generally reifiable refers to an abstract idea.

Thanks.
 
Prithvi Sehgal
Ranch Hand
Posts: 774
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Sumukh,

Thanks it clarifies my doubt. Thanks for your insight.

BR,
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic