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 |
Can we make main() thread as daemon?
What is local variable and instance variable?
What is use of functional interface in java 8? Explain
When we will use an Interface and Abstract class?
Do I need java on my pc?
Explain the difference between call by refrence and call by value?
What is difference between overloading and overriding in java?
What is pass by value?
What are the elements of java?
How do you create a reference in java?
what are depricated methods ?
what is use of functional interface in java 8?