what is the difference between HashMap And HashTable?
Answer Posted / guest
HashMap is a nonsyncronized and HashTable is a
syncronized.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is difference between equal and == in java?
What is scope & storage allocation of global and extern variables? Explain with an example
Explain inner classes ?
Give example to differentiate between call by value and call by reference.
What is an exception 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 ascii code?
Why we use methods in java?
What is the difference between path and classpath variables?
What is multi level inheritance in java?
Can a final variable be initialized in constructor?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
Can we use different return types for methods when overridden?
How do you reverse a string in java?
What is ternary operator? Give an example.