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
What are multiple inheritances?
How many bits is a string in java?
What is stringreader?
What is a numeric format?
What is the java reflection api? Why it’s so important to have?
What is getclass () getname () in java?
Explain java code for recursive solution's base case?
what is the significance of listiterator in java?
Explain the transient field modifier?
Why javac is not recognized?
How does compareto method work?
Explain differences between checked and unchecked exceptions in java?
Write a java program for binary search?
How does multithreading take place on a computer with a single cpu in java programming?
What is java and why do we need it? Explain