What is difference between hashmap and arraylist?
Answer / Nidhi Chandra
A HashMap in Java is a collection of key-value pairs, while an ArrayList is a dynamic-size array. A HashMap does not maintain the order of its elements, but an ArrayList maintains the insertion order.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is a hashmap a dictionary?
How can you implement a stack?
wt is a datastructure
What is the difference between array and stack?
What does quick sort do?
Which is the parent class of abstractsequentiallist class?
Why null is allowed in hashmap?
What are the disadvantages of linked list?
How is the front of the queue calculated in data structure?
How does a heap sort work?
Parenthesis is never required in postfix or prefix expressions, why?
Is an arraylist an object?