File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Object Creation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Object Creation" Watch "Object Creation" New topic

Object Creation

subhadeep chakraborty
Ranch Hand

Joined: Jul 29, 2006
Posts: 67
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

Joined: Sep 28, 2004
Posts: 20531

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:


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
looks like an intermediate level question to me

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
subhadeep chakraborty
Ranch Hand

Joined: Jul 29, 2006
Posts: 67
Thanks,i could understand something from the tutorial,i will go through Java Threads..Thanks again, bye....
I agree. Here's the link:
subject: Object Creation
It's not a secret anymore!