In treeset we add same object ...what will be the out put

Answer Posted / ramamurthy

Output will be in display natural sorted order, which
doesn't contail duplicates

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sorting algorithm in java?

642


What is the difference between Error, defect,fault, failure and mistake?

747


What is singleton class in ruby?

675


why would you use a synchronized block vs. Synchronized method? : Java thread

614


Explain the inheritance?

666






Can you instantiate the math class in Java?

701


What is ternary operator? Give an example.

695


What is Hierarchy of exception?

725


What is the base class for error and exception?

643


When is the arraystoreexception thrown?

651


What is the string function?

637


Can a constructor be private and how are this() and super() method used with constructor?

626


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

669


Write a program to find maximum and minimum number in array?

637


Can we serialize static variables in java?

747