Sunday, December 11, 2011

Collections

Collections is one of the most important topics in Java. Java 5 generics have improved collections a lot. You just need to keep the collections architecture in mind and which collection to use when as shown in example.

For example if you want fast random excess and you care about ordering as well go for arraylist. If you don't care about ordering and you don't want duplicates in your collection go for sets and so on. Map hierarchy and classes Arrays and Collections are not shown here. Please go through the following reference to get a good expertise over collections.


Collections

No comments:

Post a Comment