Duration: 16:26 minutes
Summary: In this video, we start discussing the exam questions related to the Generics and Collections. Most of the questions have to do with adding a generic declaration to the code and seeing which of the options will work best and not generate an error. We start with an ArrayList of a List of Integers so we can insert a row into a table. Then we moved into the relationship between hashCode and equals. We also tackled inserting items into a TreeSet and how that can throw exceptions during runtime when the objects are of different types since the TreeSet needs to compare them and sort them. Finally, we explained the difference of the results of adding elements into a map when the equals method is implemented and the hashCode is commented out.