Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Sorted collections' - 4 question(s) found - Order By Newest | ||||
| ||||
Ans. TreeMap | ||||
![]() | ||||
![]() ![]() ![]() | ||||
Ans. Order in which constants are declared. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. TreeSet and TreeMap are used for maintaining sorted elements. | ||||
![]() | ||||
![]() ![]() ![]() ![]() ![]() ![]() | ||||
| ||||
Ans. TreeSet contains only values as elements whereas TreeMap contains Key value pairs. | ||||
![]() | ||||
![]() ![]() ![]() ![]() ![]() | ||||