What is a hashmap used for?



What is a hashmap used for?..

Answer / Durgesh Kumar Jha

HashMap in Java is used to store key-value pairs where each unique key is mapped to its corresponding value. It allows efficient retrieval and manipulation of data using keys.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

1 Answers  


What is object

6 Answers  


What is private public protected in java?

1 Answers  


what is finalmethod & final variable with example?

6 Answers   HP,


What is Java Classloader?

1 Answers   Phantom Technologies,


what is object slice?

1 Answers  


What is sortedmap interface?

1 Answers  


How can constructor chaining be done using this keyword?

2 Answers  


Outline the major features of java.

1 Answers  


why Interface used?

1 Answers   HCL,


'A class is a template for an object' explain this statement.

1 Answers   Akamai Technologies,


if a java file without any source code is valid java file?

3 Answers   SparkTG,


Categories