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

What are JVM.JRE, J2EE, JNI?

696


Can we have a method name same as class name in java?

583


What is generic class?

651


Differentiate jar and war files?

596


Which is easier netbeans or eclipse?

614






Explain about java sdk?

583


Can sleep() method causes another thread to sleep?

569


What do you mean by of string::valueof expression in java 8?

544


Is treeset sorted in java?

587


What does the exclamation mark mean in java?

597


What is a method declaration?

518


What is difference between this and super keyword?

520


What is the purpose of declaring a variable as final?

489


How do you include a string in java?

526


What is listnode in java?

537