Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Difference between collection and arraylist.

View previous topic View next topic Go down

GMT + 3 Hours Difference between collection and arraylist.

Post by Diya Sun May 29, 2011 3:28 pm

Assalam O Alaikum Sir, Please explain the difference of collection and arraylist as both can add any type of object
Diya
Diya
Monstars
Monstars

Taurus Goat
Posts : 364
Join date : 2011-02-08
Age : 33
Notworthy

Character sheet
Experience:
Difference between collection and arraylist. Left_bar_bleue10/500Difference between collection and arraylist. Empty_bar_bleue  (10/500)

Back to top Go down

GMT + 3 Hours Re: Difference between collection and arraylist.

Post by Vuhelper Sun May 29, 2011 3:28 pm

The Collections API is a set of classes and interfaces that support operations on collections of objects.
Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap.
Example of interfaces: Collection, Set, List and Map.
Whereas,
ArrayList: It is re-sizable array implementation. Belongs to 'List' group in collection. It permits all elements, including null. It is not thread -safe.

Collections: It implements Polymorphic algorithms which operate on collections.

Collection: It is the root interface in the collection hierarchy.
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum