what is difference betwwen hashmap and hashtable ?
Answer Posted / ajay yadav
Hash Map allows null values.
Hash Table dont allows null values.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What happens if we override private method?
Can we have multiple classes in a single file?
Is integer a class?
Why are the methods of the math class static?
What is included in core java?
Can we have this () and super () together?
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.
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What is the purpose of an interface?
Write a java program that prints all the values given at command-line.
What do you mean by ternary operator in java?
What is a final class in java?
Does constructor creates the object ?
What is a flag variable?
What are different type of exceptions in java?