what is the difference between HashMap and Hashtable
Answer Posted / suresh
HashMap hm=new HashMap();
hm.put("1","11");
hm.put("2","22");
hm.put("3","33");
hm.put("4","242");
hm.put(null,null);
hm.put(null,null);
HashMap also allow more null values
Is This Answer Correct ? | 24 Yes | 13 No |
Post New Answer View All Answers
Is empty set an element of empty set?
What is application tier?
What are the difference between string, string builder, and string buffer in java?
What is the main use of java?
Explain about anonymous inner classes in java?
Can a class extend 2 classes in java?
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.
What is the escape character in java?
What about member inner classes?
Differentiate between the constructors and methods in java?
What is difference between wait and notify in java?
What is json parser in java?
Can we use this () and super () in a method?
What is args length in java?
What is java algorithm?