Advanced Features in Java: Working with Maps in Java
Java SE 13
| 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
-
1.Course Overview2m 26sUP NEXT
-
2.Introduction to Maps10m 37s
-
3.Maps with Duplicates7m 22s
-
4.Maps and the Collection Interface9m 53s
-
5.Different Types of Maps9m 33s
-
6.Using TreeMaps6m 7s
-
7.Course Summary2m 33s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.