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
Q. What is the output of the below Java program with Enums?
Q. Which of the following is not a decision making statement?
Q. The _______ supports several constructors to create an empty String.
Q. What is the output of the below Java code with a FOR loop?
Q. What is the output of this program?
Q. Which of the following methods hits database always?
Q. For storing a value, double uses
Q. What is the result of the expression "Java".replace("a", "o") in Java?
Discusssion
Login to discuss.