Which class has no duplicate elements?

Answer Posted / ramanareddy333

in java .util package there is one interface (set interface)
that interface does not allows the duplicate values.that
interface implementations class are
hashset,treeset....these classes don't allow the duplicate
values.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between heap and stack memory?

732


Explain about data types?

751


What are thread groups?

744


What is finalize method?

801


Can java object be locked down for exclusive use by a given thread?

757


What is a method in coding?

774


What are conditionals and its types?

803


Explain the public class modifier?

693


Mention a package that is used for linked list class in java.

716


What method is used to specify a container's layout in java programming?

761


What are streams?

830


Why java is said to be pass-by-value ?

766


Can a list be null in java?

742


How do you do a line break in java?

660


Where is the find and replace?

719