Results 1 to 4 of 4

Thread: What are the different collection classes of java

  1. #1
    Join Date
    Jan 2009
    Posts
    53

    What are the different collection classes of java

    Hi All,

    I just completed my 'C++' programming and started 'JAVA'. I am aware about the collection classes of 'C++'. But I want know what are the different collection classes of java.

    Is anybody know about the collection classes? Please provide me the information regarding different collection classes which is available in 'JAVA'. Your help will be greatly appreciable...

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What are the different collection classes of java

    Hi friend,

    According to my java knowledge following are the different collection classes available in java:

    *. Arrays

    *. Containers/Collections
    .......*. List(Arraylist, Linkedlist)
    .......*.Set(Hashset, Treeset)
    .......*. Collection
    .......*. Map( Hashmap, Treemap)

    *. Iterators

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: What are the different collection classes of java

    Hi,

    Following are the different collection classes of java which I used:

    1. AbstractCollection
    2. java.lang.reflect.Array
    3. Arrays
    4. HashMap
    5. Collections
    6. javax.swing.tree.DefaultTreeModel
    7. Hashtable
    8. ArrayList
    9. LinkedList
    10. Vector
    11. TreeSet

    Please try to use these different collection classes.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What are the different collection classes of java

    In java collections classes are the collections of objects grouped together using characteristic which is common.
    Collection is a most common basic collection interface. This collection interface provides the generic usage of the collection to the user:

    See below example:

    import java.util.Collection; // Interface
    import java.util.ArrayList; // Implementation
    import java.util.HashSet; // Implementation
    ...
    Collection coll_demo1 = new ArrayList();
    Collection coll_demo2 = new HashSet();
    ...
    < Use coll_demo1 & coll_demo2 >

Similar Threads

  1. get classes and object in java
    By preeti makkar in forum Software Development
    Replies: 1
    Last Post: 07-05-2012, 11:08 AM
  2. Automatic generation of classes UML.java
    By TechGate in forum Software Development
    Replies: 5
    Last Post: 04-03-2010, 11:10 AM
  3. Query in java classes
    By Aaliya Seth in forum Software Development
    Replies: 5
    Last Post: 26-02-2010, 01:34 AM
  4. Error with Java Classes
    By csolci in forum Software Development
    Replies: 2
    Last Post: 07-02-2010, 03:39 AM
  5. Differentiation between Collection and Legacy classes
    By D_chapple in forum Software Development
    Replies: 5
    Last Post: 27-01-2010, 10:50 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,529,233.71241 seconds with 16 queries