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 is java english?

496


Is a class an object?

582


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

664


What is the syntax and characteristics of a lambda expression?

563


Java is Pass by Value or Pass by Reference?

622






What is the purpose class.forname method?

562


List some important characteristics on jre

596


Is ruby built on java?

537


What is classname class in java?

538


What is meant by JVM? Is JVM platform independent or not?

579


Can we override constructors?

544


Do you know how to reverse string in java?

588


What is static synchronization?

580


How to print an arraylist in java?

504


Is singleton class thread safe?

542