Which of the data type below could be used to store elements in their natural order based on the compareTo method.

a. HashSet.
b. TreeSet
c. ArrayList.
d. LinkedList.
e. None of the above

Answer is b. TreeSet

Computer Science & Information Technology

You might also like to view...

A total row appears as the last row of a table to:

A) highlight or emphasize cells that meet certain conditions. B) format cells based upon their value in reference to the value of other cells. C) display summary statistics, such as a sum. D) tag a table element as a reference in a formula.

Computer Science & Information Technology

When using an external style sheet, the ________ attribute specifies the relationship between the current document and the target URL

Fill in the blank(s) with correct word

Computer Science & Information Technology