• Post Reply Bookmark Topic Watch Topic
  • New Topic

Object Creation  RSS feed

 
subhadeep chakraborty
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set<A> obj = new HashSet<A>();

Here, i don't understand what is <A>.It would be helpful if you help me with this.
 
Henry Wong
author
Sheriff
Posts: 23282
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not just a feature of object creation. To understand this, you need to know what Generics are. I would suggest that you start with the Generics tutorial on the Sun web site:

http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html

Henry
 
Bert Bates
author
Sheriff
Posts: 8945
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks like an intermediate level question to me
 
subhadeep chakraborty
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,i could understand something from the tutorial,i will go through Java Threads..Thanks again, bye....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!