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 flush () in java?
How do you calculate roots in java?
What is the maximum size of arraylist in java?
write a program that list all permutations of ABCDEF in which A appears before B?
Can inner class be public in java?
What is the current version of java?
What are the Static and Dynamic Variables? Differentiate them.
What is the driver class?
Which of the following can be referenced by a variable? A. The instance variables of a class only B. The methods of a class only C. The instance variables and methods of a class
Why destructor is not used in java?
What is the best way to findout the time/memory consuming process?
Why is static used?