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 |
When abstract methods are used?
What are the different conditional statements?
What is meant by Encapsulation? Can you write a class to explain encapsulation?
Is empty list java?
What is the driver class?
I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance...
What are the main concepts of oops in java?
What is numeric data type?
What is the difference between synchronized and synchronized block?
Can constructor be synchronized?
What about interrupt() method of thread class ?
what is mutability?which one is mutable String or StringBuffer?and why?give examples of each which shows the mutability of each String or StringBuffer