Title: Threads - Exam questions tests - Sun Certified Java Programmer 310-065 - Lesson 67
Duration: 16 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.
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, Thread, Runnable, interface, run(), start(), abstract, final, TreeSet, add().












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