Which interface does `HashMap` implement?

Java Professional Easy

Java Professional — Easy

Which interface does `HashMap` implement?

Key points

  • HashMap implements the Map interface for key-value pair storage
  • List and Set are not interfaces that HashMap implements
  • Collection is a superinterface of Map, but HashMap directly implements Map

Ready to go further?

Related questions