Set
|
Map
|
1) Set doesn’t allow duplicates.
|
Map stored the elements as key & value pair. Map may contain duplicate values but keys are always unique
|
2) Set allows single null value at most.
|
Map can have single null key at most and any number of null values.
|
No comments:
Post a Comment