Advanced Features in Java: Working with Maps in Java
Java
| Expert
- 7 videos | 48m 30s
- Includes Assessment
- Earns a Badge
In this course, you'll explore the Map interface and the different Map implementations available in Java. You'll learn how the Map is not a collection at all, but how it can be used to associate keys and values, and obtain collection objects that represent those keys and values. You'll see how no duplicates are allowed in keys, which effectively constitute a Set. You'll explore three implementations of the Map interface - HashMap, LinkedHashMap, and TreeMap. Next, you'll learn the finer points of how these map implementations check for duplicates. Finally, you'll examine the correct implementations of the .equals, .hashCode, and .compareTo methods in objects that are to be stored in maps.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseDescribe how maps work and how they are not quite collections but are an important part of the java collections apiDemonstrate that custom objects can be keys or values in maps, but that in order to ensure that there are no duplicates you have to override the .hashcode and .equals methods of those contained objects correctlyRecognize that maps are not collections with a series of instanceof checks and a series of comparisons
-
Recognize how maps work and that they are very similar to their set counterpartsCreate a treemap and use a custom comparatorSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 26s
-
10m 37sAfter completing this video, you will be able to describe how maps work and how they are not quite collections but are an important part of the Java Collections API. FREE ACCESS
-
7m 22sLearn how to apply that custom objects can be keys or values in maps, but that in order to ensure that there are no duplicates you have to override the .hashCode and .equals methods of those contained objects correctly. FREE ACCESS
-
9m 53sAfter completing this video, you will be able to recognize that maps are not collections with a series of instanceof checks and a series of comparisons. FREE ACCESS
-
9m 33sUpon completion of this video, you will be able to recognize how maps work and that they are very similar to their counterparts in the real world. FREE ACCESS
-
6m 7sIn this video, you will create a TreeMap and use a custom comparator. FREE ACCESS
-
2m 33s
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.