Advanced Features in Java: Working with Maps in Java

Java    |    Expert
  • 7 videos | 48m 30s
  • Includes Assessment
  • Earns a Badge
Rating 4.4 of 50 users Rating 4.4 of 50 users (50)
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

  • 2m 26s
  • 10m 37s
    After 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
  • Locked
    3.  Maps with Duplicates
    7m 22s
    Learn 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
  • Locked
    4.  Maps and the Collection Interface
    9m 53s
    After 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
  • Locked
    5.  Different Types of Maps
    9m 33s
    Upon 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
  • Locked
    6.  Using TreeMaps
    6m 7s
    In this video, you will create a TreeMap and use a custom comparator. FREE ACCESS
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.5 of 75 users Rating 4.5 of 75 users (75)
Rating 4.4 of 56 users Rating 4.4 of 56 users (56)
Rating 4.5 of 36 users Rating 4.5 of 36 users (36)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 87 users Rating 4.5 of 87 users (87)
Rating 4.7 of 13 users Rating 4.7 of 13 users (13)
Rating 4.6 of 47 users Rating 4.6 of 47 users (47)