Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Which class has no duplicate elements?

Answers were Sorted based on User's Feedback



Which class has no duplicate elements?..

Answer / ranganathkini

The java.util.Set interface and related implementations dont
support duplicate elements.

Is This Answer Correct ?    13 Yes 0 No

Which class has no duplicate elements?..

Answer / 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

Which class has no duplicate elements?..

Answer / selvan

java.util.Set Packages, there is no dulicate elements.Bcoz
these interfaces doesn't allows the dulicate values or
elements. For example. HashMap, HashSet, TreeSet and so on.

Is This Answer Correct ?    5 Yes 1 No

Which class has no duplicate elements?..

Answer / ravikiran

HashSet

Is This Answer Correct ?    3 Yes 0 No

Which class has no duplicate elements?..

Answer / 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

Which class has no duplicate elements?..

Answer / 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

Which class has no duplicate elements?..

Answer / venkatesh

Which one will not allow duplicates, is it HashMap or
HashTable? Please explain the corect answer with an
example. Thanks in advance

Is This Answer Correct ?    3 Yes 1 No

Which class has no duplicate elements?..

Answer / rajesh

hashset,treeset....these classes don't allow the duplicate
values.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Core Java Interview Questions

What is the difference between overriding & overloading?

0 Answers  


Explain method overloading?

0 Answers  


How do you ensure that n threads can access n resources without deadlock?

0 Answers  


Difference between object instantiation and construction ?

0 Answers  


Explain notifyall() method of object class ?

0 Answers  


In a container there are 5 components. I want to display all the component names, how will you do that?

0 Answers  


Can any one say how will sort map objects in java?

2 Answers   TCS,


What is the instance of an object?

0 Answers  


Why constructor has no return type?

0 Answers  


What does singleton mean in java?

0 Answers  


How do you download stubs from Remote place?

0 Answers  


for what purpose we use applets ?

3 Answers   Mindlogicx,


Categories