In HashSet duplicates are allowed while adding to the HashSet,
but while retreiving the object from HashSet is not shown the
duplicate values, WHY ?
Answer Posted / shashi
Because HashSet class will override equals and hashcode method internally.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is mean by hasing and maping in java platform and advantage?
What are the different types of ways where you can iterate over a list? : java collections
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
Which interface does java.util.hashtable implement?
What is the enumerator of the java collection framework? : java collections
What are maps interfaces in the java collections? : java collections
What are the different types of collections views being provided by the map interface? : java collections
Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com
What are the classes in the java collection framework? : java collections
What is the difference between comparable and comparator in java.util pkg?
What are the interfaces in java collections? : java collections
How is hashset maintained in memory by java ?
What is the use of the list interface in the java collection? : java collections
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
What are the types of java collections? : java collections