Section 9: The Collections Framework ( Chapter 11 )


Section 9: The Collections Framework (Chapter 11)

  • Make appropriate selection of collection classes/interfaces to suit specified behavior requirements.

  • Distinguish between correct and incorrect implementations of hashcode methods .

Study Notes

The collections framework consists of various interfaces, concrete implementations of collections, and utility classes. Familiarity with the methods defined by the interfaces is required. Some collection interfaces are better suited for certain types of information. Knowledge of which collection implementation is best suited for a particular situation is important.

The hashCode() method of two objects must return the same result if the state of the objects are equal according to the equals() method, and must consistently return the same result as long as the state remains the same. Correct implementation of the hashCode() and its relation to the equals() method must be understood .



A Programmer[ap]s Guide to Java Certification
A Programmer[ap]s Guide to Java Certification
ISBN: 201596148
EAN: N/A
Year: 2003
Pages: 284

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net