Question marks in Java generics.

Posted by gnucom on Stack Overflow See other posts from Stack Overflow or by gnucom
Published on 2010-06-09T20:38:22Z Indexed on 2010/06/09 20:42 UTC
Read the original article Hit count: 147

Filed under:
|

I tried to make sure this wasn't a duplicate post, sorry if I was blind.

This is a small snippet of code taken from some of the examples that accompany the Stanford Parser. I've been developing in Java for about 4 years, but have never had a very strong understanding of what this style of code is supposed to indicate.

        List<? extends HasWord> wordList = toke.tokenize();

I'm not worried about the details of the code. What I'm confusing about is what exactly the generic expression is supposed to convey, in English.

Can someone explain this to me?

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about generics