What is a treeset class?



What is a treeset class?..

Answer / Vikram Singh Vimal

A TreeSet is an implementation of the Set interface in Java, which maintains its elements in sorted order. A TreeSet can store unique elements and provides operations for inserting, deleting, and searching elements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the use of anonymous inner classes ?

12 Answers   DELL, HCL,


Implement a stack with push (), pop() and min() in O(1) time.

1 Answers   Amazon,


Is 0 a prime number?

1 Answers  


"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.

2 Answers  


What is the difference between reader/writer and inputstream/output stream?

1 Answers  


Why pass by reference is not possible in java?

1 Answers  


How to print nodes of a Binary tree?

1 Answers  


What is the use of ?this??

4 Answers  


how many ways we can serialize the java object?

2 Answers   Satyam,


Can multiple catch statements be used in exceptions ?

6 Answers   Wipro,


Can a class be declared as protected?

1 Answers  


What is variable declaration and definition?

1 Answers  


Categories