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 a function in java?

738


What is a key in java?

685


How can constructor chaining be done using this keyword?

902


How do you do exponents in java?

743


What is pangram in java?

738






What is == in java?

743


How do you use equal in java?

716


According to java operator precedence, which operator is considered to be with highest precedence?

801


What is unmodifiable collection in java?

677


Are arrays primitive data types?

822


Is java a security risk?

776


What are the uses of java?

749


Can constructor return value?

708


What is synchronization and why is it important in java programming?

676


Which collection is thread safe in java?

705