Home / Programming MCQs / JAVA MCQs / Question
T
Q. What will be the output of given code
import java.util.IdentityHashMap; import java.util.Map; public class MyClass { public static void main(String args[]) { Map<String,String> identityHashMap = new IdentityHashMap<String,String>(); identityHashMap.put(new String(“a”),”audi”); identityHashMap.put(new String(“a”),”ferrari”); System.out.println(identityHashMap); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Q. Which component method is used to access a component's immediate container?
Q. What makes the Java platform independent?
Q. What is the output of the following?
Q. What is the other name for Relational Operators in Java?
Q. These two ways By extending Thread class By implementing Runnable interface. are used to?
Q. A compound statement is ________.
Q. What are the parts of a SWITCH in java?
Discusssion
Login to discuss.