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 the abstraction?
How do you empty a list in java?
How can we find the actual size of an object on the heap?
What is the difference between inheritance and encapsulation?
Explain the access modifiers for a class, method and variables?
Can an object?s finalize() method be invoked while it is reachable?
What is the locale class in java programming?
How to convert String into primitive datatype.
Why Java is not pure Object Oriented language?
What are disadvantages of java?
what is the difference between HashMap and Hashtable
17 Answers Value Labs, Virtusa,
What are keyboard events?