In treeset we add same object ...what will be the out put
Answer Posted / 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 |
Post New Answer View All Answers
If a method is declared as protected, where may the method be accessed?
How to sort elements in a parallel array in java?
How do you delete a list in java?
Can we synchronize static methods in java?
What does substring mean?
Is 0 an irrational number?
Is java a utf 8 string?
What are static blocks and static initalizers in java ?
What is a buffer in java?
What is a native method in java programming?
What is the default access specifier for variables and methods of a class?
What is an object in java?
What are some alternatives to inheritance?
Is a class subclass of itself?
How hashset works internally in java?