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 |
In which language JVM (Java Virtual Machine) is implemented
What is the purpose of a parameter?
Difference between abstract and concrete class ?
What is static keyword?
Name the types of 'priority'?
Give few difference between constructor and method?
What is the difference between inheritance and encapsulation?
What is the difference between size and length in java?
strings in java are objects.why?
What is busy spin, and why should you use it?
How to handle a web browser resize operation?
What is the difference between final, finally and finalize() in java?