Difference between collection and arraylist.
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1 • Share
Difference between collection and arraylist.
Assalam O Alaikum Sir, Please explain the difference of collection and arraylist as both can add any type of object
Diya- Monstars
-
Posts : 364
Join date : 2011-02-08
Age : 33
Character sheet
Experience:
(10/500)
Re: Difference between collection and arraylist.
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.
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.
Vuhelper- Deep Bench
- Posts : 97
Join date : 2011-05-29
Similar topics
» Best Old Songs Collection
» ~Some Books Collection~
» what is garbage collection
» Beautiful Collection of Naats
» Songs Collection of Mukesh
» ~Some Books Collection~
» what is garbage collection
» Beautiful Collection of Naats
» Songs Collection of Mukesh
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Today at 9:54 am by ali001
» MedidexConnect Pharmacist Chat
Wed May 22, 2024 1:32 pm by ali001
» FISH PBs
Mon May 20, 2024 11:56 am by ali001
» Watchat Streaming World IPTV
Mon May 20, 2024 6:26 am by ali001
» Used Car Auctions USA
Sat May 18, 2024 10:16 pm by ali001
» Amuse - Become Smarter
Wed May 15, 2024 10:50 am by ali001
» Fort Lock
Sat May 04, 2024 11:49 am by ali001
» house disrepair claims
Thu May 02, 2024 4:29 pm by Ibad Khan Buledi
» Bounce n Bang: Physics puzzler
Thu May 02, 2024 11:39 am by ali001