Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (6.5k points)
How is it related to Collections?

1 Answer

0 votes
by (11.3k 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.

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...