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 is java dot?
What is constructor chaining and how is it achieved in java?
What is console based application in java?
What is listnode in java?
What is a class in java?
What are bind parameters?
What language is an assembler written in?
What do you mean by platform independence of Java?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
How many types of methods are there in java?
Is stringwriter thread safe?
explain autoboxing in java?
What is an 8 bit word?
What is an infinite loop? How infinite loop is declared?
Can a final variable be manipulated in java?