Login with  Log in with facebook
Hiring Manager? SIGN UP HERE
4

How many different types of collections are hidden inside a HashMap, also set specific subclasses of collections if possible. 

Rishi Yadav
10/25/2011 at 18:01
4 Answers
1
2

3

Mike Bystedt
10/25/2011 at 18:07

2
2

Three type of collections in HashMap are :

1. Set of Keys : It is set since Keys in the HashMap are unique

2. List of Values : Values will not be unique

3. Set of Key-Value pair : Key value pair is always unique

Meera Bhaskaran
10/25/2011 at 18:20

3
1

There are three different collections a HashMap has 1) Set of keys 2) List of Values 3) Set of key, value pairs.

Avani Shah
10/25/2011 at 18:08

4
1

There are three different collections hidden in HaspMap

1) KeySet

2)List of values

3)Entry set that is combination of both key and value

Sunita Priyadarsini Pokkunuri
10/25/2011 at 18:13

If you want to post any answer to this forum then you need to log in.
Schedule a Demo

Schedule a Demo with us

Name *
Email *
Phone *
Company *
Details