This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes basics of collections Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "basics of collections" Watch "basics of collections" New topic
Author

basics of collections

yashpal patel
Greenhorn

Joined: Jan 13, 2006
Posts: 6
hi friends

i am new to java and at presently am getting the intial touch of java.I have read about collections and have some fundamental knowledge about it.

Now my question is that when to use hashmap and when to use hashtable,Sortlist or Array list.Can any one clarify me more about the collections.What are the other topics (or java packages) that i should focus in order to get a fast and quick grip on programming.

Thanks a lot guys in advance
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I made a little Collections Crib Sheet to help me keep them all straight. Vector and Hashtable are kind of old school and I usually use the newer collections. They are synchronized, and that may be enough reason to use them some times. But we can get synchronized versions of the newer collections from the Collections class, so I stick with the new ones.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
yash_mca
Greenhorn

Joined: Jan 03, 2005
Posts: 15
thanks a lot stan james.Hey could you guide me on getting started to java programming on a fast track.

i have got very familiar with all the concepts and fundamentls of the language but still dont feel confident.Can any one suggest me where i can have sample codes or small sample demonstration projects which uses classes,interfaces,abstract classes and all the other fundamentls of java ie super(), this, static, final etc.In this way i guess i can understand the concepts better.Also at initial level which are the packages that need to be surfed mostly and mostly used.

Can any one guide me in this direction

thanking you guys in advance and thanks a million james

yash
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Please don't post the same question twice. It just wastes our time and yours.

As for learning more about Collections. You should check out the Java Tutorial in the link in my signature. It has a section that is all about the Collections API.

Layne
[ January 19, 2006: Message edited by: Layne Lund ]

Java API Documentation
The Java Tutorial
 
jQuery in Action, 2nd edition
 
subject: basics of collections
 
Similar Threads
A forum for JAVA Collections
problem while seting properties of beans in collections in formulat
when to use collections?
SCJP 1.5 � failed miserably
Collections Class