How HashMap implemented in java? how it internally works when
values are added or searched from hashMap?What is the
difference betweenthe implementation of hashmap and Linked
Hashmap?

Answer Posted / amar

The Only difference is In Hashmap There is no guarantee while
Iterating the elements comes like how you insert.
But in LinkedHashMap the elements occurs that how you insert

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array sorting in java?

660


What is the difference between yielding and sleeping in java programming?

674


What technique is carried out to find out if a particular string is empty?

682


What is the major difference between linkedlist and arraylist?

586


In case of inheritance what is the execution order of constructor and destructor?

731






how can you catch multiple exceptions in java?

631


What is the difference between final, finally and finalize() in java?

636


How do you write a conditional statement?

605


What are structs in java?

685


What is the purpose of skeleton and stub?

686


Explain about doubly linked list

720


how are methods defined?

655


What is the use of hashmap in java?

649


What is the difference between Grid and Gridbaglayout?

680


What is the main functionality of the remote reference layer?

1515