wood burning stoves 2.0*
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
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: 4343
    
    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: 7545
    
  18

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what <E> means in java..??
 
Similar Threads
Extending a enum with enum's type
Annotation attributes with type parameters
generic enum and the values() method
Abstract Method in enum
I cannot understand the Enum class declaration