Why is the find method, used by the remove and the contains operations, declared with private visibility?

What will be an ideal response?


The remove and the contains operations are implemented with methods that have public visibility, as their
operations are part of the list interface. The find method is used by remove and contains, but it is not part of the list interface.
For this reason, it has private visibility and is not available for use by a list collection user directly.

Computer Science & Information Technology

You might also like to view...

Key attributes are ________ in an entity relationship diagram

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ________ tab can be used to apply a page color

Fill in the blank(s) with correct word

Computer Science & Information Technology

Filters CANNOT be applied to collapsed lists

Indicate whether the statement is true or false.

Computer Science & Information Technology

In general, a(n) ____ path name is easier to use because it is shorter and doesn't need to be changed when a group of documents is moved.

A. relative B. absolute C. linked D. embedded

Computer Science & Information Technology