aspose file tools
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


Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what <E> means in java..??" Watch "what <E> means in java..??" New topic
Author

what <E> means in java..??

Roshan Rai
Greenhorn

Joined: Aug 16, 2012
Posts: 15

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




and




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

Thank you...
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4529
    
    8

Those are generic types. I'd suggest going through the official Java Tutorial on the topic: http://docs.oracle.com/javase/tutorial/java/generics/. They're particularly important when you're using collections.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8657
    
  23

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.

Winston

[Edit] Dang! Too slow.


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
 
Don't get me started about those stupid light bulbs.
 
subject: what <E> means in java..??