Tuesday 20 October 2015

Which copy technique (deep or shallow ) is used by TreeMap clone() method?

TreeMap clone() method
clone() method 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

Related Posts Plugin for WordPress, Blogger...