Monday, 25 April 2016
Which Cloning (Deep or Shallow) is used by TreeMap.clone() method ?
Shallow copy
clone() method of TreeMap returns the shallow copy of the TreeMap instance.
Keys and values copied in the new instance of TreeMap.
The keys and values themselves are not cloned.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.