Home / Programming MCQs / JAVA MCQs / Question
P
Q. What will be the output of the following code
import java.util.Map; import java.util.TreeMap; public class TreeMapTest { public static void main (String args[]) { Map<Integer,String> m= new TreeMap<Integer,String>(); m.put(11, “audi”); m.put(null, null); m.put(11,”bmw”); m.put(null,”fer”); System.out.println(m.size()); System.out.println(m); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
The object cloning is a way to create exact copy of an object
Which method of string class in java is used to convert the boolean into String?
When a finally block executed in Java?
The following is an example of a boolean expression
Which of these is used as default for a member of a class if no access specifier is used for it?
What is the default buffer size used by any buffered class?
In the Java statement import java.lang.Math; Math is
Which of the following is not an advantage of Hibernate Criteria API?
Discusssion
Login to discuss.