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
Is java se free?
Why does java not support operator overloading?
What are identifiers in java?
In Java list the methods that can be overridden?
What is an object in java?
What is a Null object?
What is the use of :: in java?
Explain about procedural programming language or structured programming language and its features?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is difference between string and stringbuffer?
Can you write a java class that could be used both as an applet as well as an application?
What is a default constructor and also define copy contrucyor?
What is the purpose of assert keyword used in jdk1.4.x?
How to sort list of list in java?
Why stringbuilder is not thread safe in java?