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 |
What is the use of anonymous inner classes ?
Implement a stack with push (), pop() and min() in O(1) time.
Is 0 a prime number?
"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.
What is the difference between reader/writer and inputstream/output stream?
Why pass by reference is not possible in java?
How to print nodes of a Binary tree?
What is the use of ?this??
how many ways we can serialize the java object?
Can multiple catch statements be used in exceptions ?
Can a class be declared as protected?
What is variable declaration and definition?