what is the difference between HashMap And HashTable?
Answer Posted / raghu
HashMap only one null key and multiple values. Hashtable
doesn't allow null keys and values, it throws
NullPointerException. Both are not guarantee order. HashMap
is unsyncronized, whereas Hashtable is not.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is binary tree in java?
What is the use of bufferedreader?
Describe the Big-O Notation.
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What is a java predicate?
What is set in java?
What do you understand by garbage collection in Java? Can it be forced to run?
Can variables be used in java without initialization?
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.
Which data type is a class in java?
What is jdbc api?
What is jit and its use?
When do you call copy constructor?
What is functional interface in javatpoint?
What are dot operator queries?