Java Collections Framework…

The Collection Interfaces

Collection Interface

  • List
  • Set
  • Queue

List Interface

  1. ArrayList
  2. LinkedList
  3. Vector

1.ArrayList

Example of ArrayList

2.LinkedList

3.Vector

Set Interface

HashSet

LinkedHashSet

Internal Structure Of LinkedHashSet

SortedSet Interface

NavigableSet Interface

TreeSet

Queue Interface

PriorityQueue

Insertion in PriorityQueue
Deletion in PriorityQueue

Deque Interface

ArrayDeque

Map

Maps In Java

The Map Interfaces

The Map Interface

The SortedMap Interface

The Methods Declared by SortedMap

The NavigableMap Interface

The Map.Entry Interface

  • public object getKey(): is used to obtain a key.
  • public Object getValue(): is used to obtain the value of a key.
Methods Declared by Map.Entry

The Map Classes

  • public int size(): Return the number of key-value mappings in the map.
  • public boolean isEmpty(): Returns true if the map contains no key-value mapping.
  • public V get(object Key): Returns the value to which the specified key is mapped or null if this map contains no mapping for that key.

The LinkedHashMap class

The TreeMap class

Internal Structure Of TreeMap

Conclusion

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

AWS WAF Security Automations

macOS Monterey on Ryzen + Windows + VMware 16

‘The CPU has been disabled by the guest operating system.’ when trying to run VMware VM

Embedded, self-service analytics on top of Redshift data

Using AudioManager to Manage the Audio Effect- Game Dev Series 118

The emerging client-side SaaS infrastructure stack

The best of Android at Google I/O 2018

How to configure Heroku on Ubuntu 16.04.3 x64

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ajit Kumar Singh

Ajit Kumar Singh

More from Medium

Basic of Java

Classes and Objects in Java

Java Coding Standards

Inheritance in Java