A Admin • 828.70K Points Coach Q. Which method replaces the value for a key only if it is already mapped? (A) putIfAbsent() (B) replace() (C) updateIfPresent() (D) setIfPresent() Correct Answer - Option(B) Views: 10 Filed under category Java Hashtags: Java Map Share Manage Tags
Discusssion
Login to discuss.