79511301

Date: 2025-03-15 15:05:50
Score: 0.5
Natty:
Report link

public V putIfAbsent(K key, V value)

 a) key is not present-->return null

 b)key is already present-->returns old Value

void computeIfAbsent(K key,Function function)

 a) key is already present-->map wont be changed

 b)key is not present-->computes value
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: karthik gorijavolu