Which class has no duplicate elements?

Answer Posted / neeti

the set inteface does'nt allow duplicate
elements.therefore,the add() method return false if an
attempt is made to add duplicate elements to a set.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do we need to manually write Copy Constructor?

774


What is the private method modifier?

792


How do you classify Dialog Box?

830


Why spring singleton is not thread safe?

740


how we can make a write-only class in java?

745


What sorting algorithm does javascript use?

739


What is a final class in java?

756


What is get () in java?

761


What is the importance of finally block in exception handling?

750


What is anagram word?

732


How many characters is 16 bytes?

736


How use .contains in java?

867


How do you execute a thread in java?

706


What is jagged array in java?

734


Can a class have multiple constructors?

734