File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes what <E> means in java..?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what <E> means in java..??" Watch "what <E> means in java..??" New topic

what <E> means in java..??

Roshan Rai

Joined: Aug 16, 2012
Posts: 15

Surfing on the source code of Java, I found the following declaration:


How should it be interpreted? I'm stuck with it...

Thank you...
Matthew Brown

Joined: Apr 06, 2010
Posts: 4543

Those are generic types. I'd suggest going through the official Java Tutorial on the topic: They're particularly important when you're using collections.
Winston Gutkowski

Joined: Mar 17, 2011
Posts: 8927

Roshan Rai wrote:How should it be interpreted? I'm stuck with it...

It's a generic type. Java Generics was introduced in release 1.5.

I suggest you read the tutorial, because it's too much to cover in a simple post.


[Edit] Dang! Too slow.

Bats fly at night, 'cause they aren't we. And if we tried, we'd hit a tree -- Ogden Nash (or should've been).
Articles by Winston can be found here
I agree. Here's the link:
subject: what <E> means in java..??
jQuery in Action, 3rd edition