What is the output of the code,
import java.util.*;
class HelloWorld {
public static void main(String[] args) {
LinkedHashMap<Integer, String> m = new LinkedHashMap<>();
m.put(10, "gfg");
m.put(16, "IDE");
m.put(25, "courses");
m.remove( 25 );
m.put( 20, "practice" );
System.out.println(m);
}
}
Throws an error
{10=gfg, 16=IDE, 20=practice}
{10=gfg, 16=IDE, 25=courses, 20=practice}
None of these
This question is part of this quiz :
HashMap and LinkedHashMap CIP