In treeset we add same object ...what will be the out put
Answers were Sorted based on User's Feedback
Answer / ramamurthy
Output will be in display natural sorted order, which
doesn't contail duplicates
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / mohit
A Set is a Collection that cannot contain duplicate elements...TreeSet is also a set so it will not keep duplicate items....it will show only unique values....
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / srikanth
it remove the duplicates and print the unique values
Is This Answer Correct ? | 1 Yes | 0 No |
what is stringtolennizer with example?
How to create a thread in java?
What is difference between static class and singleton pattern?
Difference between flush() and commit() in hibernate?
How to avoid the runtime exception ?
What is close method? How it's different from Finalize & Dispose?
0 Answers InfoAxon Technologies,
Is java a virus?
How do you create a sop?
what is the logic inside any default constuctor?
Why convert an applet to an application?
Is int a class in java?
What is singleton class in java and how can we make a class singleton?