Advanced Features in Java: Working with Sets In Java
Java
| Expert
- 11 videos | 1h 22m 27s
- Includes Assessment
- Earns a Badge
In this course, you'll explore the Set interface and the different Set collections available in Java. You'll learn how the Java Set interface extends Collection, and how it is used to define unordered collections in which duplicates are not allowed. You'll discover common set operations such as union, difference, intersection, and equality, as well as how these are influenced heavily by the implementation of .equals and .hashCode in the objects contained within the set. You'll cover four implementations of the Set interface - HashSet, LinkedHashSet, EnumSet, and TreeSet. Finally, you'll learn the correct implementations of the .hashCode, .equals, and .compareTo methods of user-defined objects that are to be stored in Sets.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseCreate a hashset object and invoke multiple methods on it, and also correctly override the .hashcode and .equals method of the contained classDescribe how the hashset behaves with duplicates and how overridden versions of the .equals and the .hashcode methods influence this behaviorRecognize the different types of sets and how they all extend the set, collection, and iterable interfacesDifferentiate between methods used to compute set union, difference, intersection, and equality operationsAnalyze the performance characteristics of linkedhashsets, treesets, and hashsets
-
Recognize how and why enumsets should be used to represent categorical dataDescribe how different implementations of the set interface differ in their notions of set orderCreate a treeset and sort it using various custom comparatorsCreate a treeset that stores custom objects without also creating a custom comparatorSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 30s
-
9m 33sIn this video, you will create a HashSet object and invoke multiple methods on it. You will also correctly override the .hashCode and .equals method of the contained class. FREE ACCESS
-
7m 1sAfter completing this video, you will be able to describe how the HashSet behaves with duplicates and how overridden versions of the .equals and .hashCode methods influence this behavior. FREE ACCESS
-
10m 19sUpon completion of this video, you will be able to recognize the different types of sets and how they all extend the Set, Collection, and Iterable interfaces. FREE ACCESS
-
9m 11sFind out how to differentiate between methods used to compute set union, difference, intersection, and equality operations. FREE ACCESS
-
8m 20sLearn how to analyze the performance characteristics of LinkedHashSets, TreeSets, and HashSets. FREE ACCESS
-
6m 35sUpon completion of this video, you will be able to recognize how and why EnumSets should be used to represent categorical data. FREE ACCESS
-
7m 22sAfter completing this video, you will be able to describe how different implementations of the Set interface differ in their notions of set order. FREE ACCESS
-
9m 29sFind out how to create a TreeSet and sort it using various custom comparators. FREE ACCESS
-
9m 56sDuring this video, you will learn how to create a TreeSet that stores custom objects without creating a custom comparator. FREE ACCESS
-
2m 13s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.