0 votes
1 view
in Java by (2.4k points)
How is it related to Collections?

1 Answer

0 votes
by (5.4k points)

  • This interface provides certain methods to access the values contained in a mathematical set which is finite. 
  • These are unique because they don't allow duplicate values. This is how sets function in conventional mathematics as well. 
  • Since they are implementing Collection, they have no other methods than the ones inherited by Collection. 
  • Since sets are operated on in conventional mathematics, two sets are equal if they are inhabited by the same set values.

There are a lot of similar ways to store a 'collection' of values if you're looking to learn java. Try and find out more hands-on to implement the use cases.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...