What is difference between hashset and hashmap?



What is difference between hashset and hashmap?..

Answer / Richa Verma

HashSet is a Set implementation that maintains its elements in no particular order. HashMap is a Map implementation that maps keys to values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why runnable interface is used in java?

1 Answers  


what is polymorphism with example?types of polymorphism?

15 Answers   HP, Sigma Solve,


what is inner class in java?

1 Answers   IBS,


What is n in java?

1 Answers  


Can I learn java without any programming experience?

1 Answers  


What is t in generics in java?

1 Answers  


What is boolean example?

1 Answers  


What is array list in java?

1 Answers  


What an i/o filter in java programming?

1 Answers  


How does a try statement determine which catch clause should be used to handle an exception?

2 Answers  


Which package is used for pattern matching with regular expressions?

1 Answers  


What is a values collection view ?

1 Answers  


Categories