单项选择题Given:2. import java.util.*;3. public class GIS {4. public static void main(String[] args) {5. TreeMap<String, String> m1 = new TreeMap<String, String>();6. m1.put( a , amy ); m1.put( f , frank );7. NavigableMap<String, String> m2 = m1.descendingMap();8. try {9. m1.put( j , john );10. m2.put( m , mary );11. }12. catch (Exception e) {System.out.print( ex ); }13. m1.pollFirstEntry();14. System.out.println(m1 + + m2);15. } }What is the result
A.{f=frank, j=john} {f=frank}
B.{f=frank, j=john} {m=mary, f=frank}
C.ex {f=frank, j=john} {f=frank}
D.{f=frank, j=john, m=mary} {m=mary, j=john, f=frank}
E.ex {f=frank, j=john, m=mary} {f=frank}
F.ex {f=frank, j=john, m=mary} {f=frank, a=amy}
G.{a=amy, f=frank, j=john, m=rnary} {f=frank, a=amy}
H.Compilation fails due to error(s) in the code.