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 are thread groups?
What is qualitative variable?
How can constructor chaining be done using this keyword?
In a class implementing an interface, can we change the value of any variable defined in the interface?
How does JAVA ClassLoader work?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
real time example for deadlock,starvation,livelock
What is an interface in java?
Give us the name of the list layoutmanagers in java?
What is the difference between a window and a frame in java programming?
what are the high-level thread states? : Java thread
What is thread count in java?