A Admin • 828.03K Points Coach Q. What is the output of `map.put(1, null)` if 1 already exists with a non-null value? (A) The value is not updated (B) The key is removed (C) The value is replaced with null (D) Throws NullPointerException Correct Answer - Option(C) Views: 9 Filed under category Java Hashtags: Java Map Share Manage Tags
Discusssion
Login to discuss.