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

Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

608


List some java keywords sun like c, c + + keywords?

600


What’s the difference between unit, integration and functional testing?

628


What is meant by bytecode?

587


What are the two types of java?

531






What is jrmp?

558


Write a method to check if input string is palindrome?

594


Does java arraylist maintain insertion order?

561


Is it necessary for the port addresses to be unique? Explain with reason.

587


What type of variable is gender?

556


What is the protected method modifier?

574


I want to persist data of objects for later use. What is the best approach to do so?

605


What is constructor and virtual function? Can we call a virtual function in a constructor?

695


What is function and its uses?

582


Explain runtime exceptions?

758