Advanced Features in Java: Working with Maps in Java

Java SE 13    |    Expert
  • 7 Videos | 51m
  • Includes Assessment
  • Earns a Badge
Likes 22 Likes 22
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 course
    describe how maps work and how they are not quite collections but are an important part of the Java Collections API
    demonstrate 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
    recognize 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 counterparts
    create a TreeMap and use a custom comparator
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 26s
    UP NEXT
  • Playable
    2. 
    Introduction to Maps
    10m 37s
  • Locked
    3. 
    Maps with Duplicates
    7m 22s
  • Locked
    4. 
    Maps and the Collection Interface
    9m 53s
  • Locked
    5. 
    Different Types of Maps
    9m 33s
  • Locked
    6. 
    Using TreeMaps
    6m 7s
  • Locked
    7. 
    Course Summary
    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 of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.