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

What is the output of the below java program?

593


Explain try and catch keywords in java?

619


What are the library functions in java?

542


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

546


What is a generic code?

526






Is call by reference possible in java?

531


What is unicode with example?

614


Write a program in java to find the maximum and minimum value node from a circular linked list.

516


What is meant by stack and queue?

602


Explain importance of finally block in java?

580


Why is String immutable?

616


What are the benefits of operations in java?

493


Define linked list and its features with signature?

537


What does next mean in java?

534


Is linked list a linear or non-linear data structure?

543