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 |
List interface?
Need 2+ yrs experienced java techinical question papaer for company Iflex
What is audio clip interface? Name few methods of it ?
Define how destructors are defined in java?
When should the method invokelater() be used?
What is the purpose of skeleton and stub?
How java is similar to c?
How to create a thread in java?
How does Vector implement synchronization?
What is the difference between compare and compareto in java?
Can we access a database using applets?
What is the importance of main method in Java?