Saved Bookmarks
| 1. |
What Will Happen If You Try To Store A Key Which Is Already Present In Hashmap? |
|
Answer» If you store an existing key in the HashMap then it will override the OLD VALUE with the new value and PUT() will return the old value. There will not be any EXCEPTION or error. If you store an existing key in the HashMap then it will override the old value with the new value and put() will return the old value. There will not be any exception or error. |
|