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

How do you convert an int to a double in java?

596


What's the purpose of using break in each case of switch statement?

514


How many types of gc are there in java?

569


What is the difference between math floor and math round?

505


What does  mean in regex?

572






Why a dead thread occurs?

578


How do you create a first line indent?

509


What is string pool?

629


Define Multiprogramming and Multiprocessing in java.

584


When arithmeticexception is thrown?

585


Why deletion in linkedlist is fast than arraylist?

537


What does the “static” keyword mean?

584


What is method overloading in JAVA? Why is it not present in C ?

594


What is difference between char array and string?

528


How many types of assembly languages are there?

530