Your second option which is :
String value = map.get(key);
if(value == null) {
value = "DEFAULT_VALUE";
}
is better from first one reason:
You dont create an extra reference "tmp"
You dont execute else which you do as part of your ternary comparison.