Question 10
Consider the code given below.
import java.util.*;class Team{ HashMap<String, String> f = new HashMap<String, String>(); public Team() { f.put("CSK", "Radhakrishnan"); f.put("MI", "Ambani"); } public String getOwner(String t){ return f.get(t); }}public class OptionalTest { public static void main(String[] args){ Optional<String> op1 = Optional.ofNullable(new Team().getOwner("CSK")); Optional<String> op2 = Optional.ofNullable(new Team().getOwner("RCB")); op1.ifPresent(n->System.out.println(n.toUpperCase())); op2.ifPresent(n->System.out.println(n.toUpperCase())); }}Choose the correct option.