This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Interface Collection(E)...what is E here? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interface Collection(E)...what is E here?" Watch "Interface Collection(E)...what is E here?" New topic

Interface Collection(E)...what is E here?

Sam Mites

Joined: Nov 27, 2005
Posts: 15
I was going through java api documentation, and I saw the
Interface Collection<E>, Interface Iterable<T> etc. what do <E> and <T> represents here ? and what is the context of their usage?

Thanks in advance.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Have a look at an introduction on Generics :

[My Blog]
All roads lead to JavaRanch
subject: Interface Collection(E)...what is E here?