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

Why is stringbuffer faster than string?

481


What are serialization and deserialization?

722


how can i use a nonsynchronized hashtable?

2099


When do you call copy constructor?

554


What two classes are used to read data only?

635






What is role of void keyword in declaring functions?

570


How do you read a char in java?

459


What will happen to the exception object after exception handling?

568


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

689


Can we use both this () and super () in a constructor?

545


Explain the difference between static and dynamic binding in java?

538


What is the difference between preemptive scheduling and time slicing in java programming?

529


Can you explain inner class.

586


How large is a boolean?

551


What are methods and how are they defined?

601