Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 24-11-2009
Member
 
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...
Reply With Quote
  #2  
Old 24-11-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
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
Reply With Quote
  #3  
Old 24-11-2009
Member
 
Join Date: May 2008
Posts: 2,383
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.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 24-11-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
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:

Quote:
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 >
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "What are the different collection classes of java"
Thread Thread Starter Forum Replies Last Post
get classes and object in java preeti makkar Software Development 1 07-05-2012 11:08 AM
Automatic generation of classes UML.java TechGate Software Development 5 04-03-2010 11:10 AM
Query in java classes Aaliya Seth Software Development 5 26-02-2010 01:34 AM
Error with Java Classes csolci Software Development 2 07-02-2010 03:39 AM
Differentiation between Collection and Legacy classes D_chapple Software Development 5 27-01-2010 10:50 AM


All times are GMT +5.5. The time now is 03:13 AM.