A

Admin • 828.43K Points
Coach

Q. Which method returns a shallow copy of a Map?

  • (A) clone()
  • (B) copy()
  • (C) duplicate()
  • (D) replicate()
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
The `clone()` method returns a shallow copy of the HashMap.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.