
HI Everyone
Any one can help me why set not allowed duplicate value in java.
Please post ur comment, its urgent.
Thanks in advance

1)Because set internally used Tree hierarchy that follows binary tree algorithm that's why it doesn't allow duplicate value. 2) It uses equals method for all object that we are storing in set.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
