Coding Gems
Pages
Home
Design Patterns
DS & Algos
Core Java
Garbage Collection
Multithreading
Serialization
DP
ENUM
Exception
Java Hacks
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment