P
Q. What will be the output of the following code
import java.util.HashMap; import java.util.Map; public class HashMapTest { public static void main(String args[]) { Map<Integer,String> hashMap=new HashMap<Integer,String>(); hashMap.put(11,”animesh”); hashMap.put(2,”ayushi”); hashMap.put(7,”renuka”); hashMap.put(9,”shivashish”); hashMap.put(null,”null”); System.out.println(hashMap.size()); 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. Under what circumstances might you use the yield method of the Thread class
Q. What is the output of the Java program?
Q. Which of the following declares an abstract method in an abstract Java class?
Q. Unlike C-Arrays, the Java-Arrays have ___.
Q. Java constructor overloading follows ___ principle in Object-Oriented programming.
Q. Which of these packages contain all the collection classes?
Q. Which one is commonly used to extend the applications hosted by web servers
Q. Which type of polymorphism is nothing but the method overloading in java?
Q. Which action tags are used in JSP for developing web application with Java Bean?
Discusssion
Login to discuss.