• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object Creation

 
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
Marshal
Pie
Posts: 21024
78
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: 8898
5
  • 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