Duration: 15:53 minutes
Summary: In this video, we continue our second set of the Java certification exam. We are discussing questions that deal with classes, interfaces, and threads. We see how to instantiate and start a thread. We know from previous discussions that we need to implement the Runnable interface. This interface has a method named run(). This is the core method. All your thread work needs to be in this method. However, we do not call this method directly. We call the start() method, which automatically calls run(). We will also discuss the proper way of creating classes and interfaces that are non-nested. Then, we will talk about TreeSets and their new methods in Java 6: floor(), higer(), ceiling(). We look at methods that return subsets like headset() and tailSet(). Another question we will discuss talks about overridden and overloaded methods. We are specifically looking for method declaration in the child class that is more restrictive than the parent. This method declaration will cause a compilation error.