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

Answer Posted / jayakumar

because it implement hashcode and equals method implicitly

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about wait() method?

562


Can array grow dynamically in java?

516


What class allows you to read objects directly from a stream?

859


What is formatted output in java?

495


What is the size of int?

588






Why do we override tostring method in java?

492


Why map is used in java?

569


What is string in java?

554


What do bitwise operators do?

522


Explain an intermediate language?

505


What is set string?

586


Is singleton thread safe in java?

543


What are recursive functions? Give some examples?

612


why would you use a synchronized block vs. Synchronized method? : Java thread

528


Write a program based on Java script program.

637