U
Q. What will be the output of the following code –
import java.util.Collections; import java.util.HashMap; import java.util.Map; public class MyClass { public static void main(String args[]) { Map<Integer,String> hashMap = new HashMap<Integer,String>(); hashMap.put(11,”a”); Collections.unmodifiableMap(hashMap); hashMap.put(12,”b”); System.out.println(hashMap); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What temporarily redirects response to the browser?
Q. Which of the below can be used to debug front end of a web application ?
Q. Which one of the following is not ID generating strategy using @GeneratedValue annotation?
Q. Which command can be used to check maven version?
Q. In Java, you can pass __ variables from one constructor to another overloaded constructor.
Q. Which primitive data types have wrapper classes available?
Q. The class string belongs to ................. package.
Q. Which of the following are true about interfaces.
Q. Which keyword is used to declare a method that cannot be overridden in Java?
Discusssion
Login to discuss.