Set and HashSet in Java Collection Framework with Examples

Published: 17 April 2022
on channel: Lazy Programmer
507
22

Hello Everyone,

This is another video in the Series of Core Java Programming. This video contains detailed session on Set and HashSet in Java with various examples.

Chapters:
0:00 Introduction
0:27 What is Set Interface?
0:47 Properties of Set Interface in Java
1:33 Implementations of Set Interface in Java
2:17 What is HashSet in Java?
2:30 How the data is stored in HashSet
3:06 Code to access the elements of HashSet
3:53 Initial Capacity and Load Factor for Collection
5:07 How to set Initial Capacity and Load Factor explicitly?
5:38 Methods in Set and HashSet
7:18 Mathematical Set Operations: Union, Intersection and Subset
8:04 Code Example for Union
8:36 Code Example for Intersection
8:57 Code Example for Subset
9:33 Why and When to use HashSet?

Links:

Please do checkout other tutorial videos also if required:

Linked List in Java with Examples:    • Linked List in Java with Examples #co...  
List and ArrayList Implementation with Examples #collectionframework #list:    • List and ArrayList Implementation wit...  
Fibonacci Series In Java With Recursion and FASTEST Algorithm With Execution Time As Well:    • Fibonacci Series In Java With Recursi...  
Introduction to Collection Framework in Java | Need of Framework | Advantages, Hierarchy and Ops:    • Introduction to Collection Framework ...  
Arrays in Java | How data is Stored in Array | 1D 2D Arrays | Processing of Array | Cloning Array:    • Arrays in Java | How data is Stored i...  
Garbage Collection in Java Part-2 | Types of GC | Performance Impact & Improvement:    • Garbage Collection in Java Part-2 | T...  
Garbage Collection in Java Part-1 | Memory Management | Need of GC | Generational GC | Tweak Heap:    • Garbage Collection in Java Part-1 | M...  
Java Stack Memory | Demonstration with Example | Heap VS Stack memory:    • Java Stack Memory | Demonstration wit...  
Java Heap Memory | Demonstrate Allocation & Deallocation | Generational Memory | Minor GC Major GC:    • Java Heap Memory | Demonstrate Alloca...  
JVM Architecture | Compile, Build, Execute Flow of Java Program | Runtime Data Area:    • JVM Architecture | Compile, Build, Ex...  
Exception Handling in Java Part-2 | Question for Viewers |Finally, Try with Resources, Interview Qs:    • Linux Commands | Commands: find, ls, ...  
Exception Handling in Java Part-1 |Exceptions, Errors, Checked, Unchecked, try catch | Examples:    • Exception Handling in Java Part-1 |Ex...  
Memory Leaks in Java:    • Memory Leaks in Java | Issues Caused ...  
Encapsulation in Java | Why and How to use Interfaces | Interview Questions | Hands-on:    • Encapsulation in Java | Why and How t...  
Interfaces in Java | Why and How to use Interfaces | Interview Questions | Hands-on:    • Interfaces in Java | Why and How to u...  
Java Abstraction | Abstract Classes | Real World Examples | Hands-on:    • Abstraction in Java | Abstract Classe...  
Java Polymorphism | Method Overloading, Method Overriding | Runtime and Compile time Binding:    • Java Polymorphism | Method Overloadin...  
Java Inheritance in Detail:    • Linux Commands | Commands: pwd, cd, a...  
Java Constructors Part-2 | Super Keyword, Constructor Overloading, Chaining, Copy | Examples:    • Java Constructors Part-2 | Super Keyw...  
Java Constructors Part-1 | Default, No-Args and Parameterized | Examples:    • Java Constructors Part-1 | Default, N...  
How to Debug Java Program Execution in Eclipse using Breakpoints:    • How to Debug Java Program Execution i...  
Static Keyword in Java | With Examples | Blocks, Variables, Methods and Classes:    • Static Keyword in Java | With Example...  
Inner Class Java Tutorial (Part-2) Local and Anonymous:    • Inner Class Java Tutorial (Part-2) - ...  
Inner Class Java Tutorial (Part-1) Static and Non-Static:    • Inner Class Java Tutorial (Part-1) - ...  
Control Statements in Java:    • How to Install Latest Python on Windo...  
Java Essentials:    • Java for Beginners Identifiers, Keywo...  
Basics of Java:    • Java for Beginners OOP Concepts Main ...  
How to install Eclipse IDE:    • How to Install Eclipse IDE on Windows...  
How to install and Configure JDK:    • How to Install Java JDK on Windows 11...  

Please do LIKE, Share and SUBSCRIBE

Thank You

#linkedlist #list #arraylist #collectionframework #fibonacci #java #fastest #gc #heap #java #stack #jvm #architecture #exception #interview #exam #interface #abstraction #coding #methodoverloading #methodoverriding #runtime #compiletime #polymorphism #inheritance #constructors #objects #static #eclipse #developer #installation #download #awesome #youtube #youtuber #youtubers #subscribe #youtubevideos #sub #youtubevideo #like #identifiers #operators #variables #typesofvariables #innerclasses #static


Watch video Set and HashSet in Java Collection Framework with Examples online without registration, duration hours minute second in high quality. This video was added by user Lazy Programmer 17 April 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 507 once and liked it 22 people.