which is the better collection class if the requirement is
only displaying the data
Answer Posted / rishabh
Choice of collection depends on the datastructure
requirements of the program. However we can make any
Collection as read only by using methods in Collections
class like unmodifiableList(), unmodifiableSet() etc.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is the relationship between an event-listener interface and an event-adapter class?
What must a class do to implement an interface?
Why doesn’t the focus feature on the tag work in every circumstance?
What value does readline() return when it has reached the end of a file?
Have you used threads in Servelet?
Why is actionform a base class rather than an interface?
What is the purpose of the wait(), notify(), and notifyall() methods?
Explain about thread synchronization inside a monitor?
What are the purpose of introspection?
What is the difference between RMI and Corba?
What is ripple effect?
What is local interface. How values will be passed?
When a thread blocks on i/o?
What is the difference between RMI registry and OS Agent?
What modifiers may be used with an inner class that is a member of an outer class?