Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what <E> means in java..??

 
Roshan Rai
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10527
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic