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

Why do we need autoboxing in java?

523


what is instanceof operator used in java?

597


Can a class have multiple superclasses?

572


Explain public static void main(string args[]) in java.

537


Explain about procedural programming language or structured programming language and its features?

550






Explain the difference between intermediate and terminal operations in java8?

573


What is the synchronized method modifier?

596


What are selection structures?

547


What is mean by collections in java?

570


What is the difference between a window and a frame in java programming?

598


What does null mean in java?

633


What is string pooling concept?

557


What happens when heap memory is full?

528


Why does java doesnt suuport unsigned values?

1801


What is ternary operator? Give an example.

603