Title: Sun Certified Java Programmer 310-065-Lesson 34-Generics and Collections (ArrayList of a List of Integers)-Part 14
Duration: 16 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.
Methodology of the development of example: Good coding standard and simplified design to prepare for the Java programmer certification exam CX-310-065.
Technology Used: Java - Core Concepts.
Keywords: Class, Object, Integer, String, List, ArrayList, hashCode(), equals(), Set.












Post stats:
See the prices for this post in Mr.Bool Credits System below: