Which class has no duplicate elements?

Answer Posted / shweta

set wont allow duplicate element all the classes implementin
set interface wont allow for eg HashSet TreeSet
Hash map will allow for two different key u can have same value

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 program to check for a prime number in java?

768


What is ordered map in java?

745


What is memory leak and how does java handle it?

719


Why do we need singleton class?

718


When should you make a function static?

717


Explain the meaning of java applet.

813


What is character in data type?

728


In how many ways we can create threads in java?

837


Explain about fail fast iterators in java?

762


Define jit compiler?

825


What is a local block?

874


How to handle a web browser resize operation?

738


Can we call the constructor of a class more than once for an object?

816


Is java call by reference?

701


Can keyword be used as identifier?

722