SlideShare a Scribd company logo
1 of 11
A Presentation on Collections
What are Collections Collections are the group of similar and dissimilar objects.Thorugh collections we can implement different various structures. Collections implement various classes as well Collections provide a way to store arbitrary objects in a structured fashion, and we all know how useful they are in everyday programming.
Need of Collections 1.Gives Non Persistent Data Structure. 2.It provides specialized classes for data storage and retrieval.  3. The interfaces may be inherited to create new collection classes. 4. Well tested and efficient methods are provided so user does not have to spent time in constructing methods.
[object Object],[object Object],[object Object],[object Object],[object Object],Note:
Non Generic  Collections ,[object Object],[object Object],[object Object]
Categories of Non Generic  Collections ,[object Object],[object Object],[object Object]
Generic Collections It allow users to create collections that provide better type safety and performance than non-generic strongly typed collections .Applications that target version 2.0 and later of the .NET Framework should use the generic collection classes Example :- instead of using the Hashtable class, which allows keys and values to be of any type, you can use the Dictionary generic class and specify the type allowed for the key and the type allowed for the value.
 
Generic vs. Non Generic Collections Non-Generic   Similar Generic Type  ArrayList   List<T>  Hashtable   Dictionary<TKey,TValue>  SortedList  SortedList<TKey,TValue>  Queue  Queue<T>  Stack  Stack<T>  N/A   SortedDictionary<TKey,TValue>  N/A  KeyedCollection<TKey,TItem>  N/A  LinkedList<T>
 
Conclusion Collections are a vital element of any object-oriented architecture. Offering the capability to group objects in logical constructs, they improve code readability and self documentation, as well as enhance maintainability.   As we see that collections reduces the Programming effort and increases program speed and Quality so it is always a good practice to use collections.

More Related Content

Viewers also liked

9 Practices of Feminine Leadership
9 Practices of Feminine Leadership9 Practices of Feminine Leadership
9 Practices of Feminine LeadershipAnastasia Valentine
 
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!Anastasia Valentine
 
When the Workplace is Every Place: Virtual Teams in the Workplace of the Future
When the Workplace is Every Place: Virtual Teams in the Workplace of the FutureWhen the Workplace is Every Place: Virtual Teams in the Workplace of the Future
When the Workplace is Every Place: Virtual Teams in the Workplace of the FutureAnastasia Valentine
 
Relevance, Value & Business at the Speed of Social
Relevance, Value & Business at the Speed of SocialRelevance, Value & Business at the Speed of Social
Relevance, Value & Business at the Speed of SocialAnastasia Valentine
 
This is Canada - My Canadian Mosaic
This is Canada - My Canadian MosaicThis is Canada - My Canadian Mosaic
This is Canada - My Canadian MosaicAnastasia Valentine
 
10 Day Marketing & Launch Strategy
10 Day Marketing & Launch Strategy10 Day Marketing & Launch Strategy
10 Day Marketing & Launch StrategyAnastasia Valentine
 
Up Your Lead Generation Game - Create a Rockstar SDR Team
Up Your Lead Generation Game - Create a Rockstar SDR TeamUp Your Lead Generation Game - Create a Rockstar SDR Team
Up Your Lead Generation Game - Create a Rockstar SDR TeamAnastasia Valentine
 
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!Anastasia Valentine
 
Các bước lập dự án ODA
Các bước lập dự án ODACác bước lập dự án ODA
Các bước lập dự án ODATiểu Nữ
 

Viewers also liked (12)

9 Practices of Feminine Leadership
9 Practices of Feminine Leadership9 Practices of Feminine Leadership
9 Practices of Feminine Leadership
 
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
 
Journals
JournalsJournals
Journals
 
IQecommerce
IQecommerceIQecommerce
IQecommerce
 
When the Workplace is Every Place: Virtual Teams in the Workplace of the Future
When the Workplace is Every Place: Virtual Teams in the Workplace of the FutureWhen the Workplace is Every Place: Virtual Teams in the Workplace of the Future
When the Workplace is Every Place: Virtual Teams in the Workplace of the Future
 
Podcasting 101
Podcasting 101 Podcasting 101
Podcasting 101
 
Relevance, Value & Business at the Speed of Social
Relevance, Value & Business at the Speed of SocialRelevance, Value & Business at the Speed of Social
Relevance, Value & Business at the Speed of Social
 
This is Canada - My Canadian Mosaic
This is Canada - My Canadian MosaicThis is Canada - My Canadian Mosaic
This is Canada - My Canadian Mosaic
 
10 Day Marketing & Launch Strategy
10 Day Marketing & Launch Strategy10 Day Marketing & Launch Strategy
10 Day Marketing & Launch Strategy
 
Up Your Lead Generation Game - Create a Rockstar SDR Team
Up Your Lead Generation Game - Create a Rockstar SDR TeamUp Your Lead Generation Game - Create a Rockstar SDR Team
Up Your Lead Generation Game - Create a Rockstar SDR Team
 
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
Ideation for Profit - 5 Easy Steps to Bring Viable Ideas to Market!
 
Các bước lập dự án ODA
Các bước lập dự án ODACác bước lập dự án ODA
Các bước lập dự án ODA
 

Similar to Collections

Net framework session02
Net framework session02Net framework session02
Net framework session02Vivek chan
 
Java collections
Java collectionsJava collections
Java collectionspadmad2291
 
Generics Collections
Generics CollectionsGenerics Collections
Generics Collectionsphanleson
 
Collectn framework copy
Collectn framework   copyCollectn framework   copy
Collectn framework copycharan kumar
 
Collectn framework
Collectn frameworkCollectn framework
Collectn frameworkcharan kumar
 
Learn advanced java programming
Learn advanced java programmingLearn advanced java programming
Learn advanced java programmingTOPS Technologies
 
Generic Programming &amp; Collection
Generic Programming &amp; CollectionGeneric Programming &amp; Collection
Generic Programming &amp; CollectionArya
 
Generic Programming &amp; Collection
Generic Programming &amp; CollectionGeneric Programming &amp; Collection
Generic Programming &amp; CollectionArya
 
Java Unit 2 (Part 2)
Java Unit 2 (Part 2)Java Unit 2 (Part 2)
Java Unit 2 (Part 2)SURBHI SAROHA
 
Collection framework (completenotes) zeeshan
Collection framework (completenotes) zeeshanCollection framework (completenotes) zeeshan
Collection framework (completenotes) zeeshanZeeshan Khan
 
Collections generic
Collections genericCollections generic
Collections genericsandhish
 
Collections in Python - Where Data Finds Its Perfect Home.pdf
Collections in Python - Where Data Finds Its Perfect Home.pdfCollections in Python - Where Data Finds Its Perfect Home.pdf
Collections in Python - Where Data Finds Its Perfect Home.pdfSudhanshiBakre1
 
CSharp for Unity Day 3
CSharp for Unity Day 3CSharp for Unity Day 3
CSharp for Unity Day 3Duong Thanh
 
11000121065_NAITIK CHATTERJEE.ppt
11000121065_NAITIK CHATTERJEE.ppt11000121065_NAITIK CHATTERJEE.ppt
11000121065_NAITIK CHATTERJEE.pptNaitikChatterjee
 
‘go-to’ general-purpose sequential collections - from Java To Scala
‘go-to’ general-purpose sequential collections -from Java To Scala‘go-to’ general-purpose sequential collections -from Java To Scala
‘go-to’ general-purpose sequential collections - from Java To ScalaPhilip Schwarz
 

Similar to Collections (20)

Net framework session02
Net framework session02Net framework session02
Net framework session02
 
Java collections
Java collectionsJava collections
Java collections
 
Generics collections
Generics collectionsGenerics collections
Generics collections
 
C# Generic collections
C# Generic collectionsC# Generic collections
C# Generic collections
 
Generics Collections
Generics CollectionsGenerics Collections
Generics Collections
 
Collectn framework copy
Collectn framework   copyCollectn framework   copy
Collectn framework copy
 
Collectn framework
Collectn frameworkCollectn framework
Collectn framework
 
Learn advanced java programming
Learn advanced java programmingLearn advanced java programming
Learn advanced java programming
 
Generic Programming &amp; Collection
Generic Programming &amp; CollectionGeneric Programming &amp; Collection
Generic Programming &amp; Collection
 
Generic Programming &amp; Collection
Generic Programming &amp; CollectionGeneric Programming &amp; Collection
Generic Programming &amp; Collection
 
Java Unit 2 (Part 2)
Java Unit 2 (Part 2)Java Unit 2 (Part 2)
Java Unit 2 (Part 2)
 
collections
 collections collections
collections
 
Collection framework (completenotes) zeeshan
Collection framework (completenotes) zeeshanCollection framework (completenotes) zeeshan
Collection framework (completenotes) zeeshan
 
Collections generic
Collections genericCollections generic
Collections generic
 
Collections in Python - Where Data Finds Its Perfect Home.pdf
Collections in Python - Where Data Finds Its Perfect Home.pdfCollections in Python - Where Data Finds Its Perfect Home.pdf
Collections in Python - Where Data Finds Its Perfect Home.pdf
 
Beginning linq
Beginning linqBeginning linq
Beginning linq
 
CSharp for Unity Day 3
CSharp for Unity Day 3CSharp for Unity Day 3
CSharp for Unity Day 3
 
11000121065_NAITIK CHATTERJEE.ppt
11000121065_NAITIK CHATTERJEE.ppt11000121065_NAITIK CHATTERJEE.ppt
11000121065_NAITIK CHATTERJEE.ppt
 
Lecture 8 Library classes
Lecture 8 Library classesLecture 8 Library classes
Lecture 8 Library classes
 
‘go-to’ general-purpose sequential collections - from Java To Scala
‘go-to’ general-purpose sequential collections -from Java To Scala‘go-to’ general-purpose sequential collections -from Java To Scala
‘go-to’ general-purpose sequential collections - from Java To Scala
 

Recently uploaded

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Recently uploaded (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

Collections

  • 1. A Presentation on Collections
  • 2. What are Collections Collections are the group of similar and dissimilar objects.Thorugh collections we can implement different various structures. Collections implement various classes as well Collections provide a way to store arbitrary objects in a structured fashion, and we all know how useful they are in everyday programming.
  • 3. Need of Collections 1.Gives Non Persistent Data Structure. 2.It provides specialized classes for data storage and retrieval. 3. The interfaces may be inherited to create new collection classes. 4. Well tested and efficient methods are provided so user does not have to spent time in constructing methods.
  • 4.
  • 5.
  • 6.
  • 7. Generic Collections It allow users to create collections that provide better type safety and performance than non-generic strongly typed collections .Applications that target version 2.0 and later of the .NET Framework should use the generic collection classes Example :- instead of using the Hashtable class, which allows keys and values to be of any type, you can use the Dictionary generic class and specify the type allowed for the key and the type allowed for the value.
  • 8.  
  • 9. Generic vs. Non Generic Collections Non-Generic  Similar Generic Type ArrayList  List<T> Hashtable  Dictionary<TKey,TValue> SortedList SortedList<TKey,TValue> Queue Queue<T> Stack Stack<T> N/A  SortedDictionary<TKey,TValue> N/A KeyedCollection<TKey,TItem> N/A LinkedList<T>
  • 10.  
  • 11. Conclusion Collections are a vital element of any object-oriented architecture. Offering the capability to group objects in logical constructs, they improve code readability and self documentation, as well as enhance maintainability. As we see that collections reduces the Programming effort and increases program speed and Quality so it is always a good practice to use collections.