View RSS Feed

Java Collection

Java Collections framework examples.

  1. Java Collection Framework

    by , 01-08-2012 at 12:19 PM
    List, Map and Set are the core interfaces supported by collection framework. Collection interface is extended by List and Set. There is also a Collections class in java that is a utility class and does not confuse it.
    A Set contains only unique elements and prevents duplication. Set is implemented by HashSet and TreeSet. List is a collection of ordered elements and it may contain duplicates. List is implemented by ArrayList, LinkedList and Vector.

    Map supports key value mapping. ...