Duration: 16:51 minutes
Summary: In this video, we proceed with sample # 2 of the Java certification exam. We have seen over and over again questions about the Thread class and the wait() method. By now, we should know that a thread must own the lock on an object whose wait() method is to be called. Another important concept that we encountered before is the is-a/has-a relationships. Has-a is about containment (example, a Room class contains a Table class). And the is-a relationship is about inheritance (for example, a Rectangle is a Shape). Other important concepts include: encapsulation, covariant, coupling, cohesion, overriding and autoboxing. Some exam questions could be related to formatting, so pay close attention to %c, %d, %f, and %b. One of the heated debates is the use of interfaces versus abstract classes. For the exam, we need to know the difference, and how to implement interfaces. Finally, the asList() method copies an array to a list, and changes (not additions) to the List or the array will be reflected in the other.