The TreeSet class is built upon a backing instance of the TreeMap class. Discuss the advantages and disadvantages of this strategy for reuse.

What will be an ideal response?


By using a TreeMap to implement the TreeSet class, much of the common functionality can be shared. The TreeMap has more complex functionality, but by keeping it constrained to one set of values it eliminates the need for a second full implementation.

Computer Science & Information Technology

You might also like to view...

List all the details of employees who are female.

What will be an ideal response?

Computer Science & Information Technology

When you begin an email in the Outlook Web app, but do not send it, the email will be stored in the ________ folder

A) Sent Items B) Inbox C) Drafts D) Outbox

Computer Science & Information Technology

Referring to the figure above, to access this dialog box, you should click New Style on the ____ panel.

A. Manage Styles B. Apply Styles C. Format Styles D. Style Sheets

Computer Science & Information Technology

COGNITIVE ASSESSMENT Which of the following is a proprietary mobile operating system specifically made for Apple's mobile devices?

A. Mozilla B. Blackberry C. iOS D. Android

Computer Science & Information Technology