I have a question concerning the method start().... I have seen an example class which extends from Thread and overrides the run() method of Thread. But I have read that in order to start a thread you should invoke the start method on the instance of the subclass, is this correct ? Because in this example the start method is never invoked ; does this mean that the overriden run() is never executed ???
NO - start does NOT "call run" - start puts the Thread in a runnable state so the JVM will schedule it to execute the run method. You have to call the start() method of the Thread or the class that extends Thread. While you can have another Thread call the run method, that defeats the whole idea. The JavaDocs for the java.lang.Thread class are very clear on this - I heartily recommend that you read them. Bill