Why Set interface contains unique elements, what internally
implemented for this so that it contains unique elements?



Why Set interface contains unique elements, what internally implemented for this so that it contain..

Answer / jayakumar

because it implement hashcode and equals method implicitly

Is This Answer Correct ?    8 Yes 2 No

Post New Answer

More Core Java Interview Questions

what is the use of servlet engine?

2 Answers   Photon,


How GUI component handle its own events?

1 Answers  


Why Java is not purely object oriented?

50 Answers   Elitecore, Persistent, Reliance, Wipro,


what is wrapper class and its uses?

2 Answers  


Why packages are used?

0 Answers  






how to use finalize()Method to resources

4 Answers   TCS,


What is volatile keyword in java

0 Answers  


Can an arraylist be empty?

0 Answers  


How to call one constructor from the other constructor ?

0 Answers  


I want to re-reach and use an object once it has been garbage collected. How it's possible?

0 Answers  


What are the different data types in java?

0 Answers  


can write code for serialization ?

1 Answers   HCL, MegaSoft,


Categories