search

Home  >  Q&A  >  body text

java - Why does HashMap both inherit AbstractMap and implement the Map interface?

We know that AbstractMap has already implemented the Map interface. Why does HashMap need to implement the Map interface one more time? Even if I remove the Map interface from the source code, no error will be reported. What is the reason for this?

巴扎黑巴扎黑2788 days ago726

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-17 10:01:01

    http://stackoverflow.com/ques...

    reply
    0
  • Cancelreply