Which class has no duplicate elements?

Answer Posted / selvan

java.util.Set Packages, there is no dulicate elements.Bcoz
these interfaces doesn't allows the dulicate values or
elements. For example. HashMap, HashSet, TreeSet and so on.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do I need to use reflection feature in java?

621


When do we use hashset over treeset?

529


What is field name?

585


What is the use of singleton class?

518


How to sort elements in a parallel array in java?

503






How do you sort objects in java?

513


What is a literal coding?

510


what is meant by HQL?

639


What is hash code collision?

587


Can we extend immutable class?

527


What are the procedures?

604


What are assembly attributes?

539


Under what conditions is an object’s finalize() method invoked by the garbage collector?

573


What is Hierarchy of exception?

645


What is cr keyboard?

650